Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 909b6c3f authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman
Browse files

USB: image/mdc800, fix lock imbalance



There is an omitted unlock in mdc800_usb_probe's fail path. Add it.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Henning Zabel <henning@uni-paderborn.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent eeafa64b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}