Hi, On Thu, Jan 09, 2003 at 12:05:46AM +0100, Henning Meier-Geinitz wrote: > This is another try to fix the crashes that occur when a USB scanner > is disconnected while open and write/read/ioctl is called after the > disconnect. This time I've kept all the cleanup bur kfree(scn) in > disconnect_scanner() and only the kfree(scn) is done in close_scanner, > if the device was disconnected in the meantime.
Is this approach ok? I'm willing to use alternative ways, but I don't know any :-) > [PATCH 2.5.54] scanner.c: Avoid crashes when using read/write/ioctl on disconnected >device > > Avoid crashing when read/write/ioctl is called after disconnecting the > device. Keep scn until the device is closed and check scn->present in > read/write/ioctl. Bye, Henning ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
