On Fri, Sep 05, 2003 at 11:03:59AM +0100, Ian Abbott wrote:
> On Thursday 04 Sep 2003 21:51, Greg KH wrote:
> > On Thu, Sep 04, 2003 at 11:34:09AM -0700, Greg KH wrote:
> > > On Thu, Sep 04, 2003 at 07:21:54PM +0100, Ian Abbott wrote:
> > > > If port->open_count > 0, the final call to __serial_close
> > > > sets port->tty = NULL, resulting in the null pointer
> > > > dereference on the final line above.
> > >
> > > Ah, nice catch, thanks.
> > > So does the following patch solve the problem for you?
> >
> > Hm, this is probably the better patch for this instead.  Can you
> > try this?
> 
> Yes it works okay.  The only niggle is that if I do 'cat 
> /dev/ttyUSB0' (or /dev/usb/tts/0 in my case) and then disconnect, 
> the process is still sat there doing a blocking read.

And what would you expect the process to do?  :)

Same thing happens on 2.6.  Maybe on 2.7 with the tty layer rewrite we
can try to address things like that (the tty layer isn't set up to
handle tty devices disappearing underneath it very well.)

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to