]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ramoops: update parameters only after successful init
authorKees Cook <kees@outflux.net>
Wed, 16 Nov 2011 23:41:51 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 23 Nov 2011 03:13:54 +0000 (14:13 +1100)
commit9f4a936f6e517e60338139f5cec085fe1c95ac96
treec46ede348ad37b65c0393ed20f01a5147237e817
parentbb16e968a5b7467556d60926f90859562f9547cb
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