summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/BdsDxe/BootMaint
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/BdsDxe/BootMaint')
-rw-r--r--MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c
index ac31398987..709720c200 100644
--- a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c
+++ b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c
@@ -132,6 +132,10 @@ BootMaintExtractConfig (
UINTN BufferSize;
BMM_CALLBACK_DATA *Private;
+ if (Request == NULL) {
+ return EFI_NOT_FOUND;
+ }
+
Private = BMM_CALLBACK_DATA_FROM_THIS (This);
//