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.4.26/drivers/usb/serial/ipaq.c.ORG  2004-07-22 20:05:32.000000000 +0530
+++ linux-2.4.26/drivers/usb/serial/ipaq.c      2004-07-22 20:11:45.000000000 +0530
@@ -188,6 +188,7 @@
        port->private = (void *)priv;
        priv->active = 0;
        priv->queue_len = 0;
+       priv->free_len = 0;
        INIT_LIST_HEAD(&priv->queue);
        INIT_LIST_HEAD(&priv->freelist);
 
@@ -302,6 +303,10 @@
        kfree(priv);
        port->private = 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

Reply via email to