From: Bi, Dandan Date: Fri, 9 Feb 2018 03:10:11 +0000 (+0800) Subject: ShellPkg/Dp: Add null pointer check X-Git-Tag: edk2-stable201903~2404 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2d70c90d2e8bf4405c5c16c0c7ea5b2446d1517a 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 --- 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; }