> However, it doesn't fix the crash with read/write after
> disconnect ("Unable to handle kernel paging request at virtual address
> 5a5a5a5a"). The crash happens everytime when disconnecting the scanner
> during actual scanning.
>
> That's because of "scn = file->private_data;" in scanner_read and
> scanner_write. The structure to which scn points now was kfreed in
> disconnect_scanner...
>
> I haven't found any way to "tell" read/write that the device was
> disconnected without keeping the scn data until close_scanner() is
> called. That's why I didn't include the "owner: THIS_MODULE" in this
> patch.
>
> Any ideas to do that without keeping the scn data around until the
> final close?
You cannot.
Either keep the descriptors around, or don't use file->private_data
and go through the array indexed by minors always.
HTH
Oliver
-------------------------------------------------------
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