]> git.dujemihanovic.xyz Git - linux.git/commit
efi: pstore: Return proper errors on UEFI failures
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Sun, 19 May 2024 16:33:53 +0000 (13:33 -0300)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 May 2024 07:09:39 +0000 (09:09 +0200)
commit7c23b186ab892088f76a3ad9dbff1685ffe2e832
tree0a4a7a8621786261873210e4bff4802b6547147e
parent5134acb15d9ef27aa2b90aad46d4e89fcef79fdc
efi: pstore: Return proper errors on UEFI failures

Right now efi-pstore either returns 0 (success) or -EIO; but we
do have a function to convert UEFI errors in different standard
error codes, helping to narrow down potential issues more accurately.

So, let's use this helper here.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi-pstore.c