diff options
author | Laurent Pinchart | 2014-11-01 14:32:28 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2014-12-04 15:41:11 +0100 |
commit | f6cee18858b3c0adaa30cbe45a1766c8ef053c5d (patch) | |
tree | 9b8da082484a7f90c4da7bc7e425f254ceb92c0f /drivers/media/platform | |
parent | [media] smiapp: Support V4L2_SEL_TGT_NATIVE_SIZE (diff) | |
download | kernel-qcow2-linux-f6cee18858b3c0adaa30cbe45a1766c8ef053c5d.tar.gz kernel-qcow2-linux-f6cee18858b3c0adaa30cbe45a1766c8ef053c5d.tar.xz kernel-qcow2-linux-f6cee18858b3c0adaa30cbe45a1766c8ef053c5d.zip |
[media] v4l: vb2: Fix race condition in vb2_fop_poll
The vb2_fop_poll() implementation tries to be clever on whether it needs
to lock the queue mutex by checking whether polling might start fileio.
The test requires reading the q->num_buffer field, which is racy if we
don't hold the queue mutex in the first place.
Remove the extra cleverness and just lock the mutex.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform')
0 files changed, 0 insertions, 0 deletions