diff mbox

ov511: fix probe() hang due to double mutex_lock

Message ID 20091211010449.GV3387@jenkins (mailing list archive)
State Accepted
Headers show

Commit Message

Brandon Philips Dec. 11, 2009, 1:04 a.m. UTC
None
diff mbox

Patch

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;