lkml.org 
[lkml]   [2008]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    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"))
    --


    \
     
     \ /
      Last update: 2008-07-05 14:01    [W:4.216 / U:0.500 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site