]> Pileus Git - ~andy/linux/commit
[media] pwc: Fix locking
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 May 2012 07:43:12 +0000 (04:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:21:59 +0000 (09:21 -0300)
commitceede9fa8939e40ad0ddb4ad1355f45c6f1d3478
tree201155f368f69a4875b523f899aed80226fe8822
parenta67e17221429c0322e543ae4bf0b25259c3416a5
[media] pwc: Fix locking

My last locking rework for pwc mistakenly assumed that videbuf2 does its
own locking, but it does not! This patch fixes the missing locking by
moving over the the video_device lock, and introducing a separate lock
for the videobuf2_queue.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-if.c
drivers/media/video/pwc/pwc-v4l.c
drivers/media/video/pwc/pwc.h