Messages in this thread Patch in this message | | | Date | Sat, 05 Jul 2008 15:53:37 +0400 | From | Cyrill Gorcunov <> | Subject | [patch 3/5] x86: io delay - add checking for NULL early param |
| |
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> ---
Index: linux-2.6.git/arch/x86/kernel/io_delay.c ==================================================================== --- linux-2.6.git.orig/arch/x86/kernel/io_delay.c 2008-06-23 22:30:14.000000000 +0400 +++ linux-2.6.git/arch/x86/kernel/io_delay.c 2008-07-05 12:49:06.000000000 +0400 @@ -103,6 +103,9 @@ void __init io_delay_init(void) static int __init io_delay_param(char *s) { + if (!s) + return -EINVAL; + if (!strcmp(s, "0x80")) io_delay_type = CONFIG_IO_DELAY_TYPE_0X80; else if (!strcmp(s, "0xed")) --
| |