Commit 6a14f198 authored by Guilherme G. Piccoli's avatar Guilherme G. Piccoli Committed by Kees Cook

pstore: Inform unregistered backend names as well

Currently we only show the registered ones in the kernel
log; users that change backend for some reason require
first to unregister the current one, so let's confirm this
operation with a message in the log.
Signed-off-by: default avatarGuilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221006224212.569555-4-gpiccoli@igalia.com
parent 8f5de3fd
...@@ -665,6 +665,8 @@ void pstore_unregister(struct pstore_info *psi) ...@@ -665,6 +665,8 @@ void pstore_unregister(struct pstore_info *psi)
psinfo = NULL; psinfo = NULL;
kfree(backend); kfree(backend);
backend = NULL; backend = NULL;
pr_info("Unregistered %s as persistent store backend\n", psi->name);
mutex_unlock(&psinfo_lock); mutex_unlock(&psinfo_lock);
} }
EXPORT_SYMBOL_GPL(pstore_unregister); EXPORT_SYMBOL_GPL(pstore_unregister);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment