ChangeSet 1.1673.8.51, 2004/03/30 14:10:36-08:00, [EMAIL PROTECTED]
[PATCH] USB: ftdi_sio.c: not unlinking urb on ftdi_close
This patch fixes a bug in ftdi_sio.c where the driver wouldn't unlink the
read urb if the user application cleared the HUPCL flag on termios->c_cflag.
drivers/usb/serial/ftdi_sio.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff -Nru a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
--- a/drivers/usb/serial/ftdi_sio.c Wed Apr 14 14:35:51 2004
+++ b/drivers/usb/serial/ftdi_sio.c Wed Apr 14 14:35:51 2004
@@ -1361,15 +1361,16 @@
/* drop RTS */
if (set_rts(port, LOW) < 0) {
err("Error from RTS LOW urb");
- }
- /* shutdown our bulk read */
- if (port->read_urb) {
- usb_unlink_urb (port->read_urb);
}
- /* unlink the running write urbs */
-
+ } /* Note change no line if hupcl is off */
+
+ /* shutdown our bulk read */
+ if (port->read_urb) {
+ if (usb_unlink_urb (port->read_urb) < 0) {
+ err("Error unlinking read urb");
+ }
+ }
- } /* Note change no line is hupcl is off */
} /* if (serial->dev) */
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel