]> git.baikalelectronics.ru Git - kernel.git/commit
efi/x86: Fix the deletion of variables in mixed mode
authorGary Lin <glin@suse.com>
Thu, 9 Apr 2020 13:04:33 +0000 (15:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 14 Apr 2020 06:32:16 +0000 (08:32 +0200)
commit2e035b47a87e34b01ff08e65b907e35bd17a39fc
tree7e77613301b80d8ae9e9893bed0c31f31a7eb176
parent623d6b119e36949169520757d64bd3b3242de17f
efi/x86: Fix the deletion of variables in mixed mode

efi_thunk_set_variable() treated the NULL "data" pointer as an invalid
parameter, and this broke the deletion of variables in mixed mode.
This commit fixes the check of data so that the userspace program can
delete a variable in mixed mode.

Fixes: bfd3519708ac4c9f ("efi/x86: Handle by-ref arguments covering multiple pages in mixed mode")
Signed-off-by: Gary Lin <glin@suse.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200408081606.1504-1-glin@suse.com
Link: https://lore.kernel.org/r/20200409130434.6736-9-ardb@kernel.org
arch/x86/platform/efi/efi_64.c