Hi,

On Wed, Feb 26, 2003 at 10:35:05AM -0800, Greg KH wrote:
> > However, it doesn't (yet) solve the real problem: if I disconnect the
> > scanner while the device file is openend and then write to the scanner
> > the kernel crashes.
> 
> Where does it die?  What's the oops output?

Actually the crash happens when I unplug the scanner while the device
is open. No need to write. Unplugging the device while not open works
and closing it works, too. Without your patch, noo crash on unplug
(but after unplug when I try to write).

Here is the oops from your patch (inclusing some messages from
plugging in/unplugging the scanner):

hub 1-2:0: debounce: port 4: delay 100ms stable 4 status 0x101
hub 1-2:0: new USB device on port 4, assigned address 3
drivers/usb/image/scanner.c: USB scanner device (0x055f/0x0001) now attached to 
scanner0
usb 1-2.4: USB disconnect, address 3
hub 1-2:0: debounce: port 4: delay 100ms stable 4 status 0x101
hub 1-2:0: new USB device on port 4, assigned address 4
drivers/usb/image/scanner.c: USB scanner device (0x055f/0x0001) now attached to 
scanner0
usb 1-2.4: USB disconnect, address 4
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
c01e1dd7
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0060:[<c01e1dd7>]    Not tainted
EFLAGS: 00010082
EIP is at dl_reverse_done_list+0x163/0x194
eax: 00000000   ebx: dfd72080   ecx: dfd7b0c0   edx: 00000014
esi: dfd7b0e0   edi: df73f2bc   ebp: c02b1efc   esp: c02b1eb8
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 0, threadinfo=c02b0000 task=c027bde0)
Stack: dfbbb15e df73f2bc c1524eec dfbbb004 00000003 c0262c60 00000005 ffffff92 
       e0800010 dfe0e000 00000002 00000014 00000000 00000000 00000000 00000005 
       00000246 c02b1f2c c01e2c10 dfe0e000 c02b1f90 e0800014 c026324c 0000023a 
Call Trace:
 [<c01e2c10>] ohci_irq+0x130/0x1d8
 [<c01d4305>] usb_hcd_irq+0x21/0x40
 [<c0109cbf>] handle_IRQ_event+0x2b/0x50
 [<c0109e3e>] do_IRQ+0x9e/0xf8
 [<c0106dec>] default_idle+0x0/0x2c
 [<c0105000>] rest_init+0x0/0x20
 [<c0108bf8>] common_interrupt+0x18/0x20
 [<c0106dec>] default_idle+0x0/0x2c
 [<c0105000>] rest_init+0x0/0x20
 [<c0106e12>] default_idle+0x26/0x2c
 [<c0106e89>] cpu_idle+0x29/0x38
 [<c010501c>] rest_init+0x1c/0x20

Code: ff 30 68 20 31 26 c0 e8 8d 3f f3 ff 8b 7d f4 83 c4 28 89 7b 
 <0>Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing


SysRq works to some degree after that, I can reboot :-) Syncing
doesn't work however (yet another oops).

Any idea?

Bye,
  Henning


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to