Messages in this thread | | | Date | Tue, 10 Nov 2009 11:09:42 +0000 | From | Alan Cox <> | Subject | Re: [PATCH] misc: use a proper range for minor number dynamic allocation |
| |
> We could consider buggy the caller which asks for the same device name > more than once, without unregistering the first device. But better safe
If they ask for the same name we certainly should. Probably we should error that request and use WARN_ON() to shame the offender in kerneloops.org.
> than sorry: we should protect the correct drivers from the buggy ones > and avoid a depletion of the minor numbers. And, in case the driver core > returns another error for another reason (from device_create), we do the > right thing.
Agreed we need to protect the working drivers.
Alan
| |