Commit 97a9945a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Greg Kroah-Hartman

x86: io delay - add checking for NULL early param

[ Upstream commit d6cd7eff ]
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Cc: akpm@linux-foundation.org
Cc: andi@firstfloor.org
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
CC: Oliver Pinter <oliver.pntr@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7cdece17
...@@ -103,6 +103,9 @@ void __init io_delay_init(void) ...@@ -103,6 +103,9 @@ void __init io_delay_init(void)
static int __init io_delay_param(char *s) static int __init io_delay_param(char *s)
{ {
if (!s)
return -EINVAL;
if (!strcmp(s, "0x80")) if (!strcmp(s, "0x80"))
io_delay_type = CONFIG_IO_DELAY_TYPE_0X80; io_delay_type = CONFIG_IO_DELAY_TYPE_0X80;
else if (!strcmp(s, "0xed")) else if (!strcmp(s, "0xed"))
......
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