android_kernel_motorola_sm6225/drivers/media
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
..
common [media] Missing break statement added in smsdvb-main.c 2013-05-21 13:24:44 -03:00
dvb-core Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
dvb-frontends [media] media: dvb-frontends: remove duplicate checks for EPERM in dbg_g/s_register 2013-05-27 09:34:20 -03:00
firewire [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
i2c [media] media: i2c: remove duplicate checks for EPERM in dbg_g/s_register 2013-05-27 09:34:06 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] media: pci: remove duplicate checks for EPERM 2013-05-27 09:34:56 -03:00
platform [media] coda: do not call v4l2_m2m_job_finish from .job_abort 2013-06-08 19:46:27 -03:00
radio [media] wl128x: do not call copy_to_user() while holding spinlocks 2013-05-21 08:23:31 -03:00
rc [media] rc: gpio-ir-recv: Remove redundant platform_set_drvdata() 2013-05-27 09:30:59 -03:00
tuners [media] r820t: Remove a warning for an unused value 2013-04-25 16:07:04 -03:00
usb [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
v4l2-core [media] v4l: vb2: fix error return code in __vb2_init_fileio() 2013-05-27 08:51:36 -03:00
Kconfig
Makefile
media-device.c [media] media: info leak in media_device_enum_entities() 2013-04-23 16:58:52 -03:00
media-devnode.c
media-entity.c