diff options
author | Oliver Neukum <oliver@neukum.org> | 2011-02-10 14:33:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-17 18:51:12 (GMT) |
commit | 3d06bf152abcc3895a0f3afa21d762d84c9aecbc (patch) | |
tree | 772c5f2f28daa3af306b66bacce2f3d46fa86d4f /drivers/usb/serial/usb_wwan.c | |
parent | c9c4558f7874676e31ea7a74caafcf09ebbc03ed (diff) | |
download | linux-3d06bf152abcc3895a0f3afa21d762d84c9aecbc.tar.xz |
usb_wwan: fix runtime PM in error case
An error in the write code path would permanently disable
runtime PM in this driver
Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/usb_wwan.c')
-rw-r--r-- | drivers/usb/serial/usb_wwan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index 7bd0685..07cdc6c 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c @@ -261,6 +261,7 @@ int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, intfdata->in_flight--; spin_unlock_irqrestore(&intfdata->susp_lock, flags); + usb_autopm_put_interface_async(port->serial->interface); continue; } } |