Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1902869019918411c148c18cc3a22aade569ac9a
Commit:     1902869019918411c148c18cc3a22aade569ac9a
Parent:     2129c4e1b4469e1f9711a54e97e8ddf8b26bb62d
Author:     Oliver Neukum <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 12 19:08:30 2008 +0100
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Thu Feb 21 15:38:48 2008 -0800

    USB: fix pm counter leak in usblp
    
    if you fail in open() you must decrement the pm counter again.
    
    Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]>
    Cc: stable <[EMAIL PROTECTED]>
    Signed-off-by: Pete Zaitcev <[EMAIL PROTECTED]>
---
 drivers/usb/class/usblp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
index ad632f2..0647164 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to