init: fix in-place parameter modification regression
authorKrzysztof Mazur <krzysiek@podlesie.net>
Thu, 31 Oct 2013 03:15:39 +0000 (13:45 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 31 Oct 2013 03:19:13 +0000 (13:49 +1030)
commit08746a65c2961b5765a66350823ff75ace63bfd1
tree2f21949617bb303be3333f7163ee151d0d95c28d
parente0f244c63fc9d192dfd399cc2677bbdca61994b1
init: fix in-place parameter modification regression

Before commit 026cee0086fe1df4cf74691cf273062cc769617d
("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: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
init/main.c