summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuomin Jiang <guomin.jiang@intel.com>2020-04-16 14:57:44 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-04-22 01:55:34 +0000
commitc14f034a1ad0a2fdeb9f0870ffd35b7332a19a2a (patch)
tree5a6e8b2964f638d42de60ed4b4e7790e2f00d233
parent1755932f89e0b32fa09232661a5ae6c357f4e471 (diff)
downloadedk2-c14f034a1ad0a2fdeb9f0870ffd35b7332a19a2a.tar.gz
edk2-c14f034a1ad0a2fdeb9f0870ffd35b7332a19a2a.tar.bz2
edk2-c14f034a1ad0a2fdeb9f0870ffd35b7332a19a2a.zip
SecurityPkg/DxeImageAuth: Mark the File parameter as OPTIONAL
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2652 According to the File description, The File is optional and can be NULL. Signed-off-by: Guomin Jiang <guomin.jiang@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
-rw-r--r--SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c b/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c
index e4ddff21b5..ec77151c9c 100644
--- a/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c
+++ b/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c
@@ -32,7 +32,7 @@ EFI_STATUS
EFIAPI
DxeImageAuthenticationStatusHandler (
IN UINT32 AuthenticationStatus,
- IN CONST EFI_DEVICE_PATH_PROTOCOL *File,
+ IN CONST EFI_DEVICE_PATH_PROTOCOL *File, OPTIONAL
IN VOID *FileBuffer,
IN UINTN FileSize,
IN BOOLEAN BootPolicy