Skip to content

Commit 893c5f1

Browse files
guilhermepiccolikees
authored andcommitted
efi: pstore: Follow convention for the efi-pstore backend name
For some reason, the efi-pstore backend name (exposed through the pstore infrastructure) is hardcoded as "efi", whereas all the other backends follow a kind of convention in using the module name. Let's do it here as well, to make user's life easier (they might use this info for unloading the module backend, for example). Cc: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20221006224212.569555-8-gpiccoli@igalia.com
1 parent 6a14f19 commit 893c5f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/firmware/efi/efi-pstore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int efi_pstore_erase(struct pstore_record *record)
207207

208208
static struct pstore_info efi_pstore_info = {
209209
.owner = THIS_MODULE,
210-
.name = "efi",
210+
.name = KBUILD_MODNAME,
211211
.flags = PSTORE_FLAGS_DMESG,
212212
.open = efi_pstore_open,
213213
.close = efi_pstore_close,

0 commit comments

Comments
 (0)