diff options
author | Bi, Dandan <dandan.bi@intel.com> | 2018-02-09 11:10:11 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-02-09 17:04:15 +0800 |
commit | 2d70c90d2e8bf4405c5c16c0c7ea5b2446d1517a (patch) | |
tree | 5292bf7a7ab595877dcebfe1dfa6de532071a746 /ShellPkg | |
parent | 6b86f6f336b9ccfdc27b718100c31b2aed5d7bb1 (diff) | |
download | edk2-2d70c90d2e8bf4405c5c16c0c7ea5b2446d1517a.tar.gz edk2-2d70c90d2e8bf4405c5c16c0c7ea5b2446d1517a.tar.bz2 edk2-2d70c90d2e8bf4405c5c16c0c7ea5b2446d1517a.zip |
ShellPkg/Dp: Add null pointer check
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>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|