Skip to content
Commit a1d36eef authored by Gary Lin's avatar Gary Lin Committed by Paul Gortmaker
Browse files

efi/x86: Fix the deletion of variables in mixed mode



commit a4b81ccf upstream.

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: 8319e9d5 ("efi/x86: Handle by-ref arguments covering multiple pages in mixed mode")
Signed-off-by: default avatarGary Lin <glin@suse.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarIngo 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


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 52ec9a9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment