projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f34c25e
)
USB: mct_u232: fix broken close
author
Johan Hovold
<
[email protected]
>
Thu, 21 Oct 2010 08:49:10 +0000
(10:49 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 22 Oct 2010 17:22:19 +0000
(10:22 -0700)
Fix regression introduced by commit
f26788da3b342099d2b02d99ba1cb7f154d6ef7b
(USB: serial: refactor generic
close) which broke driver close().
This driver uses non-standard semantics for the read urb which makes the
generic close function fail to kill it (the read urb is actually an
interrupt urb and therefore bulk_in size is zero).
Reported-by: Eric Shattow "Eprecocious" <
[email protected]
>
Tested-by: Eric Shattow "Eprecocious" <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Johan Hovold <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/serial/mct_u232.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/mct_u232.c
b/drivers/usb/serial/mct_u232.c
index 7aa01b95b1d45fce870ec7b1c7a419185ae5aeef..2849f8c320157e483504962b3ec16b13a0a4bd45 100644
(file)
--- a/
drivers/usb/serial/mct_u232.c
+++ b/
drivers/usb/serial/mct_u232.c
@@
-549,9
+549,12
@@
static void mct_u232_close(struct usb_serial_port *port)
{
dbg("%s port %d", __func__, port->number);
- usb_serial_generic_close(port);
- if (port->serial->dev)
+ if (port->serial->dev) {
+ /* shutdown our urbs */
+ usb_kill_urb(port->write_urb);
+ usb_kill_urb(port->read_urb);
usb_kill_urb(port->interrupt_in_urb);
+ }
} /* mct_u232_close */