]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42f8e2ddd5fefff1943344d25937e46e06a03d30
tree830bf8cc03d2ac8af0a47732de208787b3913d75
parent8b001c3acea8055efe03ab7fa0fd1a91c4fdf16b
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