summaryrefslogtreecommitdiff
path: root/IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c')
-rw-r--r--IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c b/IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c
index 9bc82f16b7..a13a3525f1 100644
--- a/IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c
+++ b/IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c
@@ -443,6 +443,10 @@ ExtractDataFromHiiHandle (
SizeOfNvStore = 0;
CachedStart = 0;
+ if (DefaultImage == NULL || Guid == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
Status = GetHiiInterface (&Hii);
if (EFI_ERROR (Status)) {
return Status;