Skip to content
Commit fff2623c authored by Ray Ni's avatar Ray Ni
Browse files

MdeModulePkg/PciBus: Avoid hang when BUS pad resource is not in top



PciScanBus() assumes the GetResourcePadding() puts BUS descriptor
in the very beginning, if it's not, the Descriptors will be updated
to point to middle of the pool buffer, which can cause
FreePool(Descriptors) hang in DEBUG image.
No functionality impact to RELEASE image.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: default avatarRuiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: default avatarStar Zeng <star.zeng@intel.com>
parent 4f046505
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment