projects
/
mirror_edk2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PcAtChipsetPkg/PcRtc: Handle NULL table entry in RSDT/XSDT
[mirror_edk2.git]
/
PcAtChipsetPkg
/
PcatRealTimeClockRuntimeDxe
/
PcRtc.c
diff --git
a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
index 2bb41e7e81a45d1e64ae9124068ca51778a8d093..35e34b74b3a251f1e37f775dcc33156734729679 100644
(file)
--- a/
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
+++ b/
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
@@
-1230,6
+1230,11
@@
ScanTableInSDT (
//
\r
Table = 0;
\r
CopyMem (&Table, (VOID *) (EntryBase + Index * TablePointerSize), TablePointerSize);
\r
+
\r
+ if (Table == NULL) {
\r
+ continue;
\r
+ }
\r
\r
+
\r
if (Table->Signature == Signature) {
\r
return Table;
\r
}
\r