• Krzysztof Mazur's avatar
    init: fix in-place parameter modification regression · 08746a65
    Krzysztof Mazur authored
    Before commit 026cee00
    ("params: <level>_initcall-like kernel parameters") the __setup
    parameter parsing code could modify parameter in the
    static_command_line buffer and such modifications were kept. After
    that commit such modifications are destroyed during per-initcall level
    parameter parsing because the same static_command_line buffer is used
    and only parameters for appropriate initcall level are parsed.
    
    That change broke at least parsing "ubd" parameter in the ubd driver
    when the COW file is used.
    
    Now the separate buffer is used for per-initcall parameter parsing.
    Signed-off-by: default avatarKrzysztof Mazur <krzysiek@podlesie.net>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    08746a65
main.c 22.1 KB