]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
pstore: Shut down worker when unregistering
authorKees Cook <keescook@chromium.org>
Mon, 6 Mar 2017 20:42:12 +0000 (12:42 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:50:53 +0000 (10:50 +0200)
commit9a00d8cfb325b1d5adcf5766fedf2c198e533bc0
treefd09ebe6d8c266554adba4ba24912bbf8cce9354
parent535c053ee2fce5ac2c1c72671e847642ca78f121
pstore: Shut down worker when unregistering

BugLink: http://bugs.launchpad.net/bugs/1692898
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/pstore/platform.c