From: Oliver Neukum Date: Tue, 12 Feb 2008 18:08:30 +0000 (+0100) Subject: USB: fix pm counter leak in usblp X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1902869019918411c148c18cc3a22aade569ac9a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: fix pm counter leak in usblp if you fail in open() you must decrement the pm counter again. Signed-off-by: Oliver Neukum Cc: stable Signed-off-by: Pete Zaitcev --- diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index ad632f2d6f94..0647164d36db 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c @@ -428,6 +428,7 @@ static int usblp_open(struct inode *inode, struct file *file) usblp->rcomplete = 0; if (handle_bidir(usblp) < 0) { + usb_autopm_put_interface(intf); usblp->used = 0; file->private_data = NULL; retval = -EIO;