[media] pwc: Use vb2 queue mutex through a single name
authorEzequiel Garcia <elezegarcia@gmail.com>
Sun, 15 Jul 2012 06:00:33 +0000 (03:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Sep 2012 20:42:14 +0000 (17:42 -0300)
This lock was being taken using two different names
(pointers) in the same function.
Both names refer to the same lock,
so this wasn't an error; but it looked very strange.

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/pwc/pwc-if.c

index de7c7ba99ef494bd60bf9ae659c0d1e72b80608b..b5d0729c28d3f281e3fd292144e1f4fdfb692e18 100644 (file)
@@ -1127,7 +1127,7 @@ static void usb_pwc_disconnect(struct usb_interface *intf)
        v4l2_device_disconnect(&pdev->v4l2_dev);
        video_unregister_device(&pdev->vdev);
        mutex_unlock(&pdev->v4l2_lock);
-       mutex_unlock(pdev->vb_queue.lock);
+       mutex_unlock(&pdev->vb_queue_lock);
 
 #ifdef CONFIG_USB_PWC_INPUT_EVDEV
        if (pdev->button_dev)