summaryrefslogtreecommitdiffstats
path: root/SecurityPkg
diff options
context:
space:
mode:
authorGuomin Jiang <guomin.jiang@intel.com>2020-04-16 15:02:00 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-04-22 01:55:34 +0000
commit1854eee1b464ccd9cd3aec55141178e10a6dc502 (patch)
tree895566981ae23fc3b07887edde88847d22f3daff /SecurityPkg
parentc14f034a1ad0a2fdeb9f0870ffd35b7332a19a2a (diff)
downloadedk2-1854eee1b464ccd9cd3aec55141178e10a6dc502.tar.gz
edk2-1854eee1b464ccd9cd3aec55141178e10a6dc502.tar.bz2
edk2-1854eee1b464ccd9cd3aec55141178e10a6dc502.zip
SecurityPkg/DxeImageVerificationLib: 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>
Diffstat (limited to 'SecurityPkg')
-rw-r--r--SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c
index b7fa8ea8c5..36b87e16d5 100644
--- a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c
+++ b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c
@@ -1630,7 +1630,7 @@ EFI_STATUS
EFIAPI
DxeImageVerificationHandler (
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