audk/MdeModulePkg/Universal/Acpi
Star Zeng efef6ad6d7 MdeModulePkg AcpiTableDxe: Use Rsdt to check against NULL
Some static scan tool may regard CurrentRsdtEntry to be potentially
referenced to NULL pointer if CurrentRsdtEntry == NULL is used in
the right above if condition judgment.

        CopyMem (CurrentRsdtEntry, CurrentRsdtEntry + 1, (*NumberOfTableEntries - Index) * sizeof (UINT32));

It is introduced by commit f9bbb8d9c3.
To avoid it and have same style with
"((Xsdt == NULL) || CurrentTablePointer64 == (UINT64) (UINTN) Table->Table)",
use Rsdt instead of CurrentRsdtEntry to check against NULL.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Shumin Qiu <shumin.qiu@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
2016-03-08 18:05:16 +08:00
..
AcpiPlatformDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
AcpiTableDxe MdeModulePkg AcpiTableDxe: Use Rsdt to check against NULL 2016-03-08 18:05:16 +08:00
BootGraphicsResourceTableDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
BootScriptExecutorDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
FirmwarePerformanceDataTableDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
FirmwarePerformanceDataTablePei MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
FirmwarePerformanceDataTableSmm MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
S3SaveStateDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SmmS3SaveState MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00