]> git.baikalelectronics.ru Git - kernel.git/commit
module_param: stop double-calling parameters.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 8 Jun 2012 05:28:13 +0000 (14:58 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 8 Jun 2012 05:28:13 +0000 (14:58 +0930)
commit0ac94c1c8afaa4d733cc7dfc37690a4d6ac7131f
treedced5ed8a4afeeab7e3c3610d0272f2f18106f33
parenta37c45859bb7a3b7a6d3c2dc0a4466159cbaa6fe
module_param: stop double-calling parameters.

Commit 82c82c60b1dad1903127f6e52bbb9da02a9a4e8d "params:
<level>_initcall-like kernel parameters" set old-style module
parameters to level 0.  And we call those level 0 calls where we used
to, early in start_kernel().

We also loop through the initcall levels and call the levelled
module_params before the corresponding initcall.  Unfortunately level
0 is early_init(), so we call the standard module_param calls twice.

(Turns out most things don't care, but at least ubi.mtd does).

Change the level to -1 for standard module_param calls.

Reported-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
include/linux/moduleparam.h
init/main.c