Commit 909b6c3fc20ea772dc63a03986d74148fcbb1a1d

Authored by Jiri Slaby
Committed by Greg Kroah-Hartman
1 parent eeafa64b7a

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/usb/image/mdc800.c
... ... @@ -499,6 +499,7 @@
499 499 retval = usb_register_dev(intf, &mdc800_class);
500 500 if (retval) {
501 501 dev_err(&intf->dev, "Not able to get a minor for this device.\n");
  502 + mutex_unlock(&mdc800->io_lock);
502 503 return -ENODEV;
503 504 }
504 505