On Tue, 2006-03-14 at 16:18 -0500, Alan Stern wrote: > The disconnect routine shouldn't need to set acm->dev to NULL. The fact > that the first disconnect has already occurred can be detected by the fact > that acm = usb_get_intfdata(intf) will itself be NULL. > > Will everything work if you simply delete the line > > acm->dev = NULL; > > from acm_disconnect()?
acm->dev == NULL is used in acm_tty_close() which runs after the disconnect to determine that the device is unplugged and hence call tty_unregister_device(). -- Paul Fulghum Microgate Systems, Ltd ------------------------------------------------------- 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