]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ramoops: update parameters only after successful init
authorKees Cook <kees@outflux.net>
Mon, 24 Oct 2011 15:00:24 +0000 (02:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 4 Nov 2011 04:48:25 +0000 (15:48 +1100)
commita1b5371b51c219771f4be642b5ae75793a01c380
treec3e9cef6fd1cbe7f3ceb067136baae00ca12227c
parentde44a265f56e9eed3f9ebe1355737ba482943b0b
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