]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
MdeModulePkg: Skip invalid bus number scanning in PciBusDxe driver
authorMa, Maurice <maurice.ma@intel.com>
Mon, 16 May 2016 21:26:06 +0000 (05:26 +0800)
committerFeng Tian <feng.tian@intel.com>
Wed, 18 May 2016 08:03:30 +0000 (16:03 +0800)
commitc28306c3d6e0c7721abc937d8f47c3f1ccecf323
tree3eedcc3ad76fa750b379d40a8da1f55e244f1b10
parent720eea6aa80b48acb05c1adc0f835e849d71da97
MdeModulePkg: Skip invalid bus number scanning in PciBusDxe driver

When PcdPciDisableBusEnumeration is enabled, the PciBus driver
might get into a dead loop if the secondary bus register on PCI
bridge is not programmed or programmed improperly. Adding this
check to avoid any potential dead loop caused by this.

Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Lee Leahy <Leroy.p.leahy@intel.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c