raw: set range for MAX_RAW_DEVS
authorPaul Bolle <pebolle@tiscali.nl>
Tue, 4 Feb 2014 22:23:40 +0000 (23:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 16:29:46 +0000 (08:29 -0800)
commit7143479a6a4f853881b19999310ada53b616d2ca
tree7b3ebf25330c00c118d800cbf4c84aff199ee7ae
parent5bbb2ae3d6f896f8d2082d1eceb6131c2420b7cf
raw: set range for MAX_RAW_DEVS

The Kconfig symbol MAX_RAW_DEVS is meant to be between 1 and 65536. But
those boundaries are not enforced by its Kconfig entry.

Note that MAX_RAW_DEVS is used to set MAX_RAW_MINORS in
drivers/char/raw.c. If one would accidentally set MAX_RAW_DEVS to an
invalid value, that invalid value will actually end up being used in
raw_init().

So add an appropriate range to this Kconfig entry.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/Kconfig