projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeafa64
)
USB: image/mdc800, fix lock imbalance
author
Jiri Slaby
<jirislaby@gmail.com>
Wed, 11 Mar 2009 20:47:37 +0000
(21:47 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 17 Mar 2009 21:01:28 +0000
(14:01 -0700)
There is an omitted unlock in mdc800_usb_probe's fail path. Add it.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Henning Zabel <henning@uni-paderborn.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/image/mdc800.c
patch
|
blob
|
history
diff --git
a/drivers/usb/image/mdc800.c
b/drivers/usb/image/mdc800.c
index
878c77c
..
972f20b
100644
(file)
--- a/
drivers/usb/image/mdc800.c
+++ b/
drivers/usb/image/mdc800.c
@@
-499,6
+499,7
@@
static int mdc800_usb_probe (struct usb_interface *intf,
retval = usb_register_dev(intf, &mdc800_class);
if (retval) {
dev_err(&intf->dev, "Not able to get a minor for this device.\n");
+ mutex_unlock(&mdc800->io_lock);
return -ENODEV;
}