]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c
ShellPkg/Dp: Add null pointer check
[mirror_edk2.git] / ShellPkg / DynamicCommand / DpDynamicCommand / Dp.c
index fafc64fe2d950902936f91e396798e8ece8e9922..4dd7dd9ed11e360d0758761abbe319c7f04f3f62 100644 (file)
@@ -257,7 +257,7 @@ GetBootPerformanceTable (
                &AcpiTable\r
                  );\r
   }\r
-  if (EFI_ERROR(Status)) {\r
+  if (EFI_ERROR(Status) || AcpiTable == NULL) {\r
     return Status;\r
   }\r
 \r