From: Oliver Neukum Date: Thu, 10 Feb 2011 14:33:17 +0000 (+0100) Subject: usb_wwan: fix runtime PM in error case X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3d06bf152abcc3895a0f3afa21d762d84c9aecbc;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index 7bd06854f872..07cdc6cd1064 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; } }