public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [patch 1/2] ShellPkg/Dp: Add null pointer check
@ 2018-02-09  3:10 Dandan Bi
  2018-02-09  3:10 ` [patch 2/2] ShellPkg/DP: Update the error message info Dandan Bi
  2018-02-09  6:57 ` [patch 1/2] ShellPkg/Dp: Add null pointer check Gao, Liming
  0 siblings, 2 replies; 4+ messages in thread
From: Dandan Bi @ 2018-02-09  3:10 UTC (permalink / raw)
  To: edk2-devel; +Cc: Liming Gao, Hao Wu

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>
---
 ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c b/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c
index fafc64f..4dd7dd9 100644
--- a/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c
+++ b/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c
@@ -255,11 +255,11 @@ GetBootPerformanceTable (
     Status = EfiGetSystemConfigurationTable (
                &gEfiAcpi10TableGuid,
                &AcpiTable
                  );
   }
-  if (EFI_ERROR(Status)) {
+  if (EFI_ERROR(Status) || AcpiTable == NULL) {
     return Status;
   }
 
   FirmwarePerformanceTable = FindAcpiPtr (
                       (EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER *)AcpiTable,
-- 
1.9.5.msysgit.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-09  6:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-09  3:10 [patch 1/2] ShellPkg/Dp: Add null pointer check Dandan Bi
2018-02-09  3:10 ` [patch 2/2] ShellPkg/DP: Update the error message info Dandan Bi
2018-02-09  6:57   ` Gao, Liming
2018-02-09  6:57 ` [patch 1/2] ShellPkg/Dp: Add null pointer check Gao, Liming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox