pstore: Shut down worker when unregistering
commit9ee8502bd2cc83b5c11e2f255ad233ed823d9909
authorKees Cook <keescook@chromium.org>
Mon, 6 Mar 2017 20:42:12 +0000 (6 12:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:28:42 +0000 (20 14:28 +0200)
tree0dce18bfd153b5e2973c9dcbccd1d2c48a741e57
parenta4de9300862540cc9bb8ef9b665405bed79c28e7
pstore: Shut down worker when unregistering

commit 6330d5534786d5315d56d558aa6d20740f97d80a upstream.

When built as a module and running with update_ms >= 0, pstore will Oops
during module unload since the work timer is still running. This makes sure
the worker is stopped before unloading.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/pstore/platform.c