From: Jiri Slaby Date: Wed, 11 Mar 2009 20:47:37 +0000 (+0100) Subject: USB: image/mdc800, fix lock imbalance X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=909b6c3fc20ea772dc63a03986d74148fcbb1a1d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Henning Zabel Signed-off-by: Greg Kroah-Hartman --- 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; }