瀏覽代碼

efi_loader: fix incorrect use of EFI_EXIT()

efi_get_variable_common() does not use EFI_ENTRY(). So we should not use
EFI_EXIT() either.

Fixes: 767f6eeb01d3 ("efi_loader: variable: support variable authentication")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich Schuchardt 4 年之前
父節點
當前提交
e4c1c48eeb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/efi_loader/efi_variable.c

+ 1 - 1
lib/efi_loader/efi_variable.c

@@ -606,7 +606,7 @@ static efi_status_t efi_get_variable_common(u16 *variable_name,
 	u32 attr;
 
 	if (!variable_name || !vendor || !data_size)
-		return EFI_EXIT(EFI_INVALID_PARAMETER);
+		return EFI_INVALID_PARAMETER;
 
 	ret = efi_to_native(&native_name, variable_name, vendor);
 	if (ret)