From: Oliver Neukum Date: Tue, 12 Feb 2008 18:08:30 +0000 (+0100) Subject: USB: fix pm counter leak in usblp X-Git-Tag: v2.6.25-rc3~98^2~20 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1902869019918411c148c18cc3a22aade569ac9a;p=linux-2.6-omap-h63xx.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 ad632f2d6f9..0647164d36d 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;