Skip to contentSkip to conversation

ov511.c typo: lock => unlock

PATCH New Dan Carpenter 1 participant 1 message Nov 29, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ov511.c typo: lock => unlock

This was found with a static checker and has not been tested, but it seems pretty clear that the mutex_lock() was supposed to be mutex_unlock()

This is a 2.6.32 candidate.

drivers/media/video/ov511.c +1 -1
@@ -5878,7 +5878,7 @@ ov51x_probe(struct usb_interface *intf, 
 		goto error;
 	}
 
-	mutex_lock(&ov->lock);
+	mutex_unlock(&ov->lock);
 
 	return 0;