diff options
author | Ajan Zhong <ajan.zhong@newfw.com> | 2025-03-12 05:34:31 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-03-13 20:40:31 +0300 |
commit | 2aff039da7a8443352f572cecb7ec8109455e7d8 (patch) | |
tree | 6a0cb35d2da365729c89b6abe44f6009af4b0de0 /BaseTools/Source | |
parent | 1e0051e293aedc1a196ae5678a1e953e5ed946f1 (diff) | |
download | edk2-master.tar.xz |
When FDT based DTB is parsed, variables mPciRootBridgeInfo and
mUplPciSegmentInfoHob are always dereferenced. If there is no PCI
RB Bridge info or RB Segment info provided in FDT, it leads to
NULL pointer dereferenced.
To address this issue, parse PCI RB and Segment information only
when they are available at FDT. If they are unavailable, skip it
and allow the PciBusDxe and PciHostBridgeDxe to handle them.
Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
Diffstat (limited to 'BaseTools/Source')
0 files changed, 0 insertions, 0 deletions