]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: io delay - add checking for NULL early param
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 5 Jul 2008 11:53:37 +0000 (15:53 +0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 11:57:54 +0000 (13:57 +0200)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: akpm@linux-foundation.org
Cc: andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/io_delay.c

index 5921e5f0a64027745fa2ac3e5f695ceaca9ddeae..1c3a66a67f83d3bb6d7eec2d5e4cfb1560660720 100644 (file)
@@ -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"))