]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/Dp: Add null pointer check
authorBi, Dandan <dandan.bi@intel.com>
Fri, 9 Feb 2018 03:10:11 +0000 (11:10 +0800)
committerLiming Gao <liming.gao@intel.com>
Fri, 9 Feb 2018 09:04:15 +0000 (17:04 +0800)
Cc: Liming Gao <liming.gao@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c

index fafc64fe2d950902936f91e396798e8ece8e9922..4dd7dd9ed11e360d0758761abbe319c7f04f3f62 100644 (file)
@@ -257,7 +257,7 @@ GetBootPerformanceTable (
                &AcpiTable\r
                  );\r
   }\r
                &AcpiTable\r
                  );\r
   }\r
-  if (EFI_ERROR(Status)) {\r
+  if (EFI_ERROR(Status) || AcpiTable == NULL) {\r
     return Status;\r
   }\r
 \r
     return Status;\r
   }\r
 \r