summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-03-11 21:47:37 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-17 22:01:28 +0100
commit909b6c3fc20ea772dc63a03986d74148fcbb1a1d (patch)
tree6956e6ff55b2fbe9b37a5f4abb751a043c2c8c56 /drivers/usb
parentUSB: atm/cxacru, fix lock imbalance (diff)
downloadlinux-909b6c3fc20ea772dc63a03986d74148fcbb1a1d.tar.xz
linux-909b6c3fc20ea772dc63a03986d74148fcbb1a1d.zip
USB: image/mdc800, fix lock imbalance
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/image/mdc800.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c
index 878c77ca086e..972f20b3406c 100644
--- 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;
}