[Cluster-devel] Re: [PATCH] misc: use a proper range for minor number dynamic allocation

Alan Cox alan at lxorguk.ukuu.org.uk
Tue Nov 10 11:09:42 UTC 2009


> 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




More information about the Cluster-devel mailing list