]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ramoops: update parameters only after successful init
authorKees Cook <kees@outflux.net>
Fri, 2 Dec 2011 03:13:18 +0000 (14:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 2 Dec 2011 03:16:01 +0000 (14:16 +1100)
commitb6fbcbc4ec24bf5b865b80937d387313b550233c
tree3f4586436fa228daa42bea9d5d1fa3fb805e3fe0
parent8c17868c9ebe2beb714fb6e7221dd96f6b97cafb
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