diff options
| author | Ilias Apalodimas <[email protected]> | 2023-01-20 13:58:48 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2023-01-20 17:10:57 +0100 |
| commit | e10fffe8b56f4430e0e242977bfa67ab589b8235 (patch) | |
| tree | c0bfae0f89389359bed0e44a021a8447d6eb069a /lib | |
| parent | cd63e2d26c7c080c8bdb4ea40b4bfc1320ce2aee (diff) | |
efi_loader: fix CapsuleMax variable reporting
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 <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efi_loader/efi_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c index 54376411353..f0f01d3b1d5 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 | |
