]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: Make sure console capturing will restart
authorKees Cook <keescook@chromium.org>
Wed, 6 May 2020 23:34:42 +0000 (16:34 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 30 May 2020 17:34:02 +0000 (10:34 -0700)
commitc80a3d0be68e5203bf90917e65bbd3e8c2d02a16
tree65be713bc464cea37e20f08c9d665cacb0bea5fb
parent6ad02b9f872252a622c8c62f8589351c421e842a
pstore: Make sure console capturing will restart

The CON_ENABLED flag gets cleared during unregister_console(), so make
sure we already reset the console flags before calling register_console(),
otherwise unloading and reloading a pstore backend will not restart
console logging.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c