Kernel Oops after unplugging the device

Bug #931326 reported by DinoTools
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nwfermi
Fix Released
High
djp

Bug Description

Hi,

I use the nwfermi driver on Debian Squeeze with a touch monitor from Chilin. Everything works fine. But after unplugging the device or turning it off there is a kernel Oops.

Kernel: 2.6.32-5-686
Arch: i368
Driver: 0.6.1.0

I have attached the log messages from dmesg. Can you please fix the bug or provide a workaround.

Please don't hesitate to ask if you have any questions or if you need more information.

Revision history for this message
DinoTools (oss-dinotools-de) wrote :
Revision history for this message
DinoTools (oss-dinotools-de) wrote :

Hi,

I think I have fixed the problem. I have modified only a few lines. For more information have a look at the attached patch.

The patch has been tested with Debian Squeeze (i386)

Revision history for this message
Lars Kühn (78luphr0rnk2nuq-launchpad) wrote :

Patch works for me!

djp (djpnewton)
Changed in nwfermi:
assignee: nobody → djp (djpnewton)
importance: Undecided → High
djp (djpnewton)
Changed in nwfermi:
status: New → Fix Committed
Revision history for this message
DinoTools (oss-dinotools-de) wrote :

Hi,

the first patch only works in some situations. So I created a new one and have attached it to this message. The main problem is, that the kernel tries to disconnect two devices in some cases. The first device is a device with a minor number equal to or larger than 0. And the second device is always a device with a minor number equal to -1. The first disconnect works perfectly but the second one crashes with a NULL-pointer dereference.

I'm currently testing the patch with 8 touch monitors and Debian 6.0 and as far as I can see it works very well.

I hope it helps.

djp (djpnewton)
Changed in nwfermi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.