projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9c4558
)
usb_wwan: fix runtime PM in error case
author
Oliver Neukum
<oliver@neukum.org>
Thu, 10 Feb 2011 14:33:17 +0000
(15:33 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 17 Feb 2011 18:51:12 +0000
(10:51 -0800)
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>
drivers/usb/serial/usb_wwan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/usb_wwan.c
b/drivers/usb/serial/usb_wwan.c
index 7bd06854f87236735f866809f04915cf00b8cfb0..07cdc6cd1064f8eba6b1f46a4313e90e002eb8f7 100644
(file)
--- 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;
}
}