Commit decf8095 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] __setup fixes

fd_mcs and NCR53c406a forget to parse string -> int array in their
setup functions.
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 434c4687
......@@ -619,6 +619,7 @@ static int __init NCR53c406a_setup(char *str)
printk("NCR53c406a: Setup called too many times. Bad LILO params?\n");
return 0;
}
get_options(str, 4, ints);
if (ints[0] < 1 || ints[0] > 3) {
printk("NCR53c406a: Malformed command line\n");
printk("NCR53c406a: Usage: ncr53c406a=<PORTBASE>[,<IRQ>[,<FASTPIO>]]\n");
......
......@@ -303,6 +303,7 @@ static int __init fd_mcs_setup(char *str)
static int done_setup = 0;
int ints[3];
get_options(str, 3, ints);
if (done_setup++ || ints[0] < 1 || ints[0] > 2 || ints[1] < 1 || ints[1] > 16) {
printk("fd_mcs: usage: fd_mcs=FIFO_COUNT, FIFO_SIZE\n");
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment