linux/drivers/media/usb/uvc
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
..
Kconfig
Makefile
uvc_ctrl.c [media] uvcvideo: Return -EINVAL when setting a menu control to an invalid value 2013-03-28 18:37:11 -03:00
uvc_debugfs.c
uvc_driver.c [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
uvc_entity.c [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00
uvc_isight.c
uvc_queue.c [media] vb2: Add support for non monotonic timestamps 2013-03-05 14:53:05 -03:00
uvc_status.c [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
uvc_v4l2.c [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
uvc_video.c [media] uvcvideo: Don't fail when an unsupported format is requested 2012-11-28 10:27:49 -02:00
uvcvideo.h [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00