Skip to content

Commit

Permalink
x86: io delay - add checking for NULL early param
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jul 9, 2008
1 parent ab6bc3e commit d6cd7ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kernel/io_delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit d6cd7ef

Please sign in to comment.