From 9249fc28491681a4ed3cd8aebeab4b37c8d1cae0 Mon Sep 17 00:00:00 2001 From: Lans Zhang Date: Mon, 25 Jan 2016 09:38:40 +0800 Subject: [PATCH] Fix the size of MokDBState MokDBState is a 8-bit unsigned integer. Looks like a typo here. Signed-off-by: Lans Zhang --- shim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shim.c b/shim.c index eafbfa3..40be4c7 100644 --- a/shim.c +++ b/shim.c @@ -2070,7 +2070,7 @@ static EFI_STATUS check_mok_db (void) EFI_GUID shim_lock_guid = SHIM_LOCK_GUID; EFI_STATUS status = EFI_SUCCESS; UINT8 MokDBState; - UINTN MokDBStateSize = sizeof(MokDBStateSize); + UINTN MokDBStateSize = sizeof(MokDBState); UINT32 attributes; status = uefi_call_wrapper(RT->GetVariable, 5, L"MokDBState", &shim_lock_guid,