pstore: Shut down worker when unregistering
commit291e716bb382710d0685d6d1c8c1ac02551e70f8
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:31:04 +0000 (20 14:31 +0200)
treec0ab8e006345906d757280d5a49f710d67500d42
parente5590e3d92754b85629d2a06d70bb5b09c2165c9
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