linux/drivers/media/v4l2-core
Laurent Pinchart f6cee18858 [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>
2014-12-04 12:41:11 -02:00
..
Kconfig
Makefile
tuner-core.c
v4l2-async.c
v4l2-clk.c
v4l2-common.c [media] v4l2-common: move v4l2_ctrl_check to cx2341x 2014-11-25 08:25:36 -02:00
v4l2-compat-ioctl32.c [media] V4L2: fix VIDIOC_CREATE_BUFS 32-bit compatibility mode data copy-back 2014-11-03 15:11:59 -02:00
v4l2-ctrls.c
v4l2-dev.c [media] v4l2-dev: vdev->v4l2_dev is always set, so simplify code 2014-11-25 08:21:33 -02:00
v4l2-device.c
v4l2-dv-timings.c
v4l2-event.c
v4l2-fh.c
v4l2-ioctl.c [media] v4l2-ioctl.c: log the new ycbcr_enc and quantization fields 2014-12-01 15:35:28 -02:00
v4l2-mem2mem.c
v4l2-of.c
v4l2-subdev.c
videobuf2-core.c [media] v4l: vb2: Fix race condition in vb2_fop_poll 2014-12-04 12:41:11 -02:00
videobuf2-dma-contig.c [media] vb2: use dma_map_sg_attrs to prevent unnecessary sync 2014-11-25 09:09:19 -02:00
videobuf2-dma-sg.c [media] vb2: use dma_map_sg_attrs to prevent unnecessary sync 2014-11-25 09:09:19 -02:00
videobuf2-dvb.c
videobuf2-memops.c
videobuf2-vmalloc.c [media] V4L2: Deletion of an unnecessary check before the function call "vb2_put_vma" 2014-12-02 11:33:09 -02:00
videobuf-core.c [media] videobuf: fix sparse warnings 2014-11-05 09:07:58 -02:00
videobuf-dma-contig.c
videobuf-dma-sg.c
videobuf-dvb.c
videobuf-vmalloc.c