linux/drivers/media/usb
Laurent Pinchart 17706f5653 [media] uvcvideo: Fix open/close race condition
Maintaining the users count using an atomic variable makes sure that
access to the counter won't be racy, but doesn't serialize access to the
operations protected by the counter. This creates a race condition that
could result in the status URB being submitted multiple times.
Use a mutex to protect the users count and serialize access to the
status start and stop operations.

Reported-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-06-08 19:51:16 -03:00
..
au0828 [media] au0828: improve firmware loading & locking 2013-03-25 15:10:37 -03:00
b2c2
cpia2 [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
cx231xx [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
dvb-usb [media] stb0899: remove commented value from IQ_SWAP_ON/OFF usages 2013-05-21 08:54:37 -03:00
dvb-usb-v2 Merge branch 'topic/r820t' into patchwork 2013-04-25 10:26:21 -03:00
em28xx [media] em28xx: Add support for 1b80:e1cc Delock 61959 2013-05-21 08:18:42 -03:00
gspca [media] gspca: remove obsolete Kconfig macros 2013-03-29 08:19:26 -03:00
hdpvr [media] hdpvr: Removed unnecessary use of kzalloc() in get_video_info() 2013-05-27 08:51:51 -03:00
pvrusb2 [media] media: usb: remove duplicate checks for EPERM in vidioc_g/s_register 2013-05-27 09:34:33 -03:00
pwc [media] vb2: Add support for non monotonic timestamps 2013-03-05 14:53:05 -03:00
s2255 [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
siano [media] siano: remove the remaining CamelCase compliants 2013-03-21 10:03:45 -03:00
sn9c102 [media] sn9c102: Replace memcpy with struct assignment 2012-12-27 18:44:46 -02:00
stk1160 [media] stk1160: remove V4L2_CHIP_MATCH_AC97 placeholder 2013-03-25 09:32:21 -03:00
stkwebcam [media] stk-webcam: implement support for count == 0 when calling REQBUFS 2013-03-05 14:44:17 -03:00
tlg2300 [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
tm6000 [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
ttusb-budget [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
ttusb-dec [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
usbvision [media] v4l2: add const to argument of write-only s_register ioctl 2013-03-24 08:47:01 -03:00
uvc [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
zr364xx [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
Kconfig [media] media/usb: fix kconfig dependencies 2013-05-21 08:52:44 -03:00
Makefile