diff mbox series

efi_loader: fix CapsuleMax variable reporting

Message ID 20230120115848.898846-1-ilias.apalodimas@linaro.org
State Accepted
Commit e10fffe8b56f4430e0e242977bfa67ab589b8235
Headers show
Series efi_loader: fix CapsuleMax variable reporting | expand

Commit Message

Ilias Apalodimas Jan. 20, 2023, 11:58 a.m. UTC
Currently the code that adds the CapsuleMax variable is under a
Kconfig named 'EFI_HAVE_CAPSULE_UPDATE.  Git history only shows a
single occurrence of that.  The IS_ENABLED should be checking for
EFI_HAVE_CAPSULE_SUPPORT

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
---
 lib/efi_loader/efi_setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.38.1
diff mbox series

Patch

diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c
index e00005bc3830..0a7b608ba960 100644
--- a/lib/efi_loader/efi_setup.c
+++ b/lib/efi_loader/efi_setup.c
@@ -128,7 +128,7 @@  static efi_status_t efi_init_capsule(void)
 {
 	efi_status_t ret = EFI_SUCCESS;

-	if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_UPDATE)) {
+	if (IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)) {
 		ret = efi_set_variable_int(u"CapsuleMax",
 					   &efi_guid_capsule_report,
 					   EFI_VARIABLE_READ_ONLY |