]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ramoops: update parameters only after successful init
authorKees Cook <kees@outflux.net>
Fri, 16 Dec 2011 04:50:52 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:44:11 +0000 (18:44 +1100)
commit37227a64396539fe185cba9ec4f884db96241a92
tree0f0ddd5897cbb835a909ff1cae068289500974e0
parent7c6484823f1d51a93d53c95a7e2126290fa4d207
ramoops: update parameters only after successful init

If a platform device exists on the system, but ramoops fails to attach to
it, the module parameters are overridden before ramoops can fall back and
try to use passed module parameters.  Move update to end of init routine.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Marco Stornelli <marco.stornelli@gmail.com>
Cc: Sergiu Iordache <sergiu@chromium.org>
Cc: Seiji Aguchi <seiji.aguchi@hds.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/char/ramoops.c