All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwc: Use vb2 queue mutex through a single name
@ 2012-07-15  6:00 Ezequiel Garcia
  2012-08-09 11:28 ` Hans de Goede
  0 siblings, 1 reply; 2+ messages in thread
From: Ezequiel Garcia @ 2012-07-15  6:00 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-media, Ezequiel Garcia, Hans Verkuil

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>
---
 drivers/media/video/pwc/pwc-if.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index de7c7ba..b5d0729 100644
--- a/drivers/media/video/pwc/pwc-if.c
+++ b/drivers/media/video/pwc/pwc-if.c
@@ -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)
-- 
1.7.8.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pwc: Use vb2 queue mutex through a single name
  2012-07-15  6:00 [PATCH] pwc: Use vb2 queue mutex through a single name Ezequiel Garcia
@ 2012-08-09 11:28 ` Hans de Goede
  0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2012-08-09 11:28 UTC (permalink / raw)
  To: Ezequiel Garcia; +Cc: Mauro Carvalho Chehab, linux-media, Hans Verkuil

Hi,

Thanks for the patch, I've added it to my tree for 3.7:
http://git.linuxtv.org/hgoede/gspca.git/shortlog/refs/heads/media-for_v3.7-wip

Regards,

Hans


On 07/15/2012 08:00 AM, Ezequiel Garcia wrote:
> 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>
> ---
>   drivers/media/video/pwc/pwc-if.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
> index de7c7ba..b5d0729 100644
> --- a/drivers/media/video/pwc/pwc-if.c
> +++ b/drivers/media/video/pwc/pwc-if.c
> @@ -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)
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-09 11:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-15  6:00 [PATCH] pwc: Use vb2 queue mutex through a single name Ezequiel Garcia
2012-08-09 11:28 ` Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.