efi: efibc: avoid efivar API for setting variables
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 09:35:37 +0000 (11:35 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 10:43:25 +0000 (12:43 +0200)
commit416581e486798cbe3e2b3306faee7d7e9bf3c3d4
tree830bf8cc03d2ac8af0a47732de208787b3913d75
parent3881ee0b1edce0ece72d24b7c74f46b73bd6dcba
efi: efibc: avoid efivar API for setting variables

Avoid abusing the efivar API by passing locally instantiated
efivar_entry structs into efivar_set_entry_safe(), rather than using the
API as intended. Instead, just call efi.set_variable() directly.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/Kconfig
drivers/firmware/efi/efibc.c