From: Vojtech P. <vo...@su...> - 2002-01-28 23:23:20
|
On Mon, Jan 28, 2002 at 09:58:39PM +0100, Johann Deneux wrote: > Hi, > > When I turn off my I-Force wheel while a process having opened its > /dev/input/eventX entry is still running, strange things happen. I made > trials with evtest and fftest. Both crash. They either crash immediately, > on exit or when I press a key on my keyboard. Other strange behaviours are > mouse clicks being uneffective, the wm unwilling to change focus (I use > sloppy focus). The pointer of the mouse goes on moving, however. > All this happens with a patched 2.4.17 kernel (with my input-only > patch). I will try to see what happens with the latest CVS version as soon > as I can get it working. Just use 2.5.2-dj6, it's all there ... > Anyway, I think there should be a test on evdev->exist in every entry > function (evdev_read, ioctl, write, release, flush ...). Adding these > tests did not solve the problem, though. That shouldn't be needed. The structs associated are freed only after the file descriptor is closed. > Can someone try to reproduce the bug with another USB device ? > (Advice: sync your disks before! The crash is actually a complete freeze) It works for me. Evtest just reports: evtest: error reading: No such device and exits just OK. -- Vojtech Pavlik SuSE Labs |