hi greg,
a couple of fixes to ipaq.c
1. unitialized variable
2. on usb disconnect, hangup tty. otherwise pppd does not get the message and
keeps hanging around.
thanks,
ganesh
--- linux-2.6.7/drivers/usb/serial/ipaq.c.ORG 2004-07-22 21:10:40.000000000 +0530
+++ linux-2.6.7/drivers/usb/serial/ipaq.c 2004-07-22 21:12:31.000000000 +0530
@@ -193,6 +193,7 @@
usb_set_serial_port_data(port, priv);
priv->active = 0;
priv->queue_len = 0;
+ priv->free_len = 0;
INIT_LIST_HEAD(&priv->queue);
INIT_LIST_HEAD(&priv->freelist);
@@ -297,6 +298,10 @@
kfree(priv);
usb_set_serial_port_data(port, NULL);
+ if (port->tty) {
+ tty_hangup(port->tty);
+ }
+
/* Uncomment the following line if you want to see some statistics in your
syslog */
/* info ("Bytes In = %d Bytes Out = %d", bytes_in, bytes_out); */
}
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel