]> git.baikalelectronics.ru Git - kernel.git/commit
ramoops: update parameters only after successful init
authorKees Cook <kees@outflux.net>
Fri, 13 Jan 2012 01:20:59 +0000 (17:20 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Jan 2012 04:13:13 +0000 (20:13 -0800)
commitf2e48bb97c430b75514d6b9115704e0dba2088f8
treeaf48ca5cc4ef2173b64e421d7ad550dc10c437f0
parent4eef64cf7b6a84ac5b968b4e5ab37aeafd9c0e74
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ramoops.c