Clear acm->tty on last close because the tty layer
releases the tty object at that point.

Signed-off-by: Paul Fulghum <[EMAIL PROTECTED]>

--- linux-2.6.16-rc5/drivers/usb/class/cdc-acm.c        2006-02-27 
14:40:21.000000000 -0600
+++ b/drivers/usb/class/cdc-acm.c       2006-03-13 09:33:23.000000000 -0600
@@ -517,6 +517,7 @@ static void acm_tty_close(struct tty_str
                                usb_kill_urb(acm->ru[i].urb);
                } else
                        acm_tty_unregister(acm);
+               acm->tty = NULL;
        }
        up(&open_sem);
 }




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to