aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/ov534.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-12-30 13:11:21 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-01-19 11:44:53 -0200
commit4e770f7602fb2285f3106f98109d0685618ddc22 (patch)
tree0ee5912a6514a3889f8f5b08cbe1e9cb1ae2cf5f /drivers/media/video/gspca/ov534.c
parent82f4b5b67e795fe03952b278873712e4562304d2 (diff)
[media] gspca_main: Locking fixes 1
The gspca_dev->streaming boolean is protected against multiple access through gspca_dev->queue_lock everywhere except for 2 places. This patch fixes this by bringing it under the lock in vidioc_streamoff. And by removing the check for gspca_dev->streaming in gspca_disconnect, the destroy_urbs call may be called multiple times (and is protected by the usb_lock) and calling wake_up_interruptible can also always be done safely. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/ov534.c')
0 files changed, 0 insertions, 0 deletions