]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ramoops: update parameters only after successful init
authorKees Cook <kees@outflux.net>
Tue, 8 Nov 2011 00:20:26 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 8 Nov 2011 03:25:31 +0000 (14:25 +1100)
commitaab015b73e9d9e568174578f4df0d2b5884c2efd
tree3c4d1b420c11daff63f60b63c28e960c10543aba
parentadde33749080a7ba80e09adb2add0ba02f08d314
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