From 1e823422fbbea531cd162ee6dd8fe40208140b58 Mon Sep 17 00:00:00 2001 From: Guomin Jiang Date: Thu, 16 Apr 2020 15:14:27 +0800 Subject: [PATCH] MdeModulePkg/SecurityStubDxe: Mark the File parameter as OPTIONAL REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2652 According to the description, the File is optional and can be NULL Signed-off-by: Guomin Jiang Cc: Jian J Wang Cc: Hao A Wu Cc: Dandan Bi Cc: Liming Gao Reviewed-by: Jian J Wang --- MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c index 3ed9527561..79f98b28e5 100644 --- a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c +++ b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c @@ -129,7 +129,7 @@ EFI_STATUS EFIAPI Security2StubAuthenticate ( IN CONST EFI_SECURITY2_ARCH_PROTOCOL *This, - IN CONST EFI_DEVICE_PATH_PROTOCOL *File, + IN CONST EFI_DEVICE_PATH_PROTOCOL *File, OPTIONAL IN VOID *FileBuffer, IN UINTN FileSize, IN BOOLEAN BootPolicy