From: Bartlomiej Zolnierkiewicz Date: Fri, 20 Apr 2007 20:16:58 +0000 (+0200) Subject: ide/Kconfig: add missing range check for IDE_MAX_HWIFS X-Git-Tag: firefly_0821_release~30319^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8929fea39cb0ab3e455fe00e7eb6806c32155cd2;p=firefly-linux-kernel-4.4.55.git ide/Kconfig: add missing range check for IDE_MAX_HWIFS ide_hwif_to_major[] has only 10 entries as there are 10 major numbers reserved for IDE (if somebody needs more it shouldn't be hard to fix). Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig index ca2e4f830c39..5bdf64b77913 100644 --- a/drivers/ide/Kconfig +++ b/drivers/ide/Kconfig @@ -57,6 +57,7 @@ if IDE config IDE_MAX_HWIFS int "Max IDE interfaces" depends on ALPHA || SUPERH || IA64 || EMBEDDED + range 1 10 default 4 help This is the maximum number of IDE hardware interfaces that will