From 2d70c90d2e8bf4405c5c16c0c7ea5b2446d1517a Mon Sep 17 00:00:00 2001 From: "Bi, Dandan" Date: Fri, 9 Feb 2018 11:10:11 +0800 Subject: [PATCH 1/1] ShellPkg/Dp: Add null pointer check Cc: Liming Gao Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi Reviewed-by: Liming Gao --- 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 fafc64fe2d..4dd7dd9ed1 100644 --- a/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c +++ b/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c @@ -257,7 +257,7 @@ GetBootPerformanceTable ( &AcpiTable ); } - if (EFI_ERROR(Status)) { + if (EFI_ERROR(Status) || AcpiTable == NULL) { return Status; } -- 2.39.2