Hi,

if you fail in open() you must decrement the pm counter again.

Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]>

        Regards
                Oliver

----

--- linux-2.6/drivers/usb/class/usblp.c.alt     2008-02-11 15:25:19.000000000 
+0100
+++ linux-2.6/drivers/usb/class/usblp.c 2008-02-12 08:48:49.000000000 +0100
@@ -428,6 +428,7 @@ static int usblp_open(struct inode *inod
        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 linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to