#5395 NORM Never A: evdev runs out of minors
Zarro Boogs per Child
bugtracker at laptop.org
Fri Dec 7 11:32:06 EST 2007
#5395: evdev runs out of minors
--------------------------+-------------------------------------------------
Reporter: JordanCrouse | Owner: dilinger
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: kernel | Version:
Keywords: | Verified: 0
--------------------------+-------------------------------------------------
Leaving a USB keyboard or mouse plugged into the XO, suspend and resume
many times. On each resume, the USB input devices are allocated a new
input device with an incrementing minor. Eventually, as the new devices
are attached, evdev starts returning errors when it runs out of minors
(see attached dmesg). Reviewing the code confirms that evdev has only 32
slots, and that the errors start occuring right about when /dev/input32 is
created.
Checking the source code, it appears that evdev_detach is being correctly
called (and the input device shut down), but the device is not being
closed (evdev_release is not being called), so eventually the driver runs
out of slots, because nothing ever goes away.
This was noticed on ship.2, but presumably its been there for a while now.
Assigning to Andres to start, but this could end up in X, so CCing the X
folks too
--
Ticket URL: <http://dev.laptop.org/ticket/5395>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list