]> git.proxmox.com Git - mirror_edk2.git/commit - PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
PcAtChipsetPkg/PcRtc: Fix a NULL pointer deference issue
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 26 Jul 2016 13:07:19 +0000 (21:07 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 27 Jul 2016 02:27:16 +0000 (10:27 +0800)
commitc8ecaaf5e3d3f9b81d73f329501d3fa39739bd41
tree062effae0303d093e3ee19f467d39027614384c2
parent96fcfdbfb068670b849a850bbed28ecad913af80
PcAtChipsetPkg/PcRtc: Fix a NULL pointer deference issue

When a platform which doesn't support ACPI 1.0 (no XSDT) and FADT
is not produced at the first time when ACPI table is published,
GetCenturyRtcAddress() unconditionally deference Rsdp->RsdtAddress
but Rsdp->RsdtAddress is 0 in this case.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c