]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
efi: stmm: Do not return EFI_OUT_OF_RESOURCES on internal errors
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 25 Aug 2025 16:07:11 +0000 (18:07 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 26 Aug 2025 12:49:42 +0000 (14:49 +0200)
commit80c6c1048625712200ab9cdc665d792b85594e2c
tree3f1304f3744ce15e79a2e302ed04a40e7c294b01
parentc5e81e672699e0c5557b2b755cc8f7a69aa92bff
efi: stmm: Do not return EFI_OUT_OF_RESOURCES on internal errors

When we are low on memory or when the internal API is violated, we
cannot return EFI_OUT_OF_RESOURCES. According to the UEFI standard, that
error code is either related to persistent storage used for the variable
or even not foreseen as possible error (GetVariable e.g.). Use the not
fully accurate but compliant error code EFI_DEVICE_ERROR in those cases.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/stmm/tee_stmm_efi.c