public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ov511: fix probe() hang due to double mutex_lock
@ 2009-12-11  1:04 Brandon Philips
  2009-12-11  3:32 ` [stable] " Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Brandon Philips @ 2009-12-11  1:04 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-media, stable

Commit 163fe744c3283fd267268629afff4cfc846ed0e0 added a double
mutex_lock which hangs ov51x_probe(). This was clearly a typo.

Change final mutex_lock() -> mutex_unlock()

Signed-off-by: Brandon Philips <bphilips@suse.de>
---
 drivers/media/video/ov511.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index 0bc2cf5..2bed9e2 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -5878,7 +5878,7 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id)
 		goto error;
 	}
 
-	mutex_lock(&ov->lock);
+	mutex_unlock(&ov->lock);
 
 	return 0;
 
-- 
1.6.4.2


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

end of thread, other threads:[~2009-12-11 20:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11  1:04 [PATCH] ov511: fix probe() hang due to double mutex_lock Brandon Philips
2009-12-11  3:32 ` [stable] " Greg KH
2009-12-11 20:42   ` Brandon Philips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox