diff options
author | Guilherme G. Piccoli <gpiccoli@igalia.com> | 2022-10-07 00:42:05 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-10-17 22:14:10 +0200 |
commit | d85644dc5cf4023bf1a325f476d58a16bcc0798b (patch) | |
tree | 5ed6b20b421c3292db4df49fd490fb150349bccc /fs/exportfs | |
parent | pstore/zone: Use GFP_ATOMIC to allocate zone buffer (diff) | |
download | linux-d85644dc5cf4023bf1a325f476d58a16bcc0798b.tar.xz linux-d85644dc5cf4023bf1a325f476d58a16bcc0798b.zip |
pstore: Improve error reporting in case of backend overlap
The pstore infrastructure supports one single backend at a time;
trying to load a another backend causes an error and displays a
message, introduced on commit 0d7cd09a3dbb ("pstore: Improve
register_pstore() error reporting").
Happens that this message is not really clear about the situation,
also the current error returned (-EPERM) isn't accurate, whereas
-EBUSY makes more sense. We have another place in the code that
relies in the -EBUSY return for a similar check.
So, make it consistent here by returning -EBUSY and using a
similar message in both scenarios.
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221006224212.569555-2-gpiccoli@igalia.com
Diffstat (limited to 'fs/exportfs')
0 files changed, 0 insertions, 0 deletions