]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Fix PciBus hang issue
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 27 May 2015 01:22:13 +0000 (01:22 +0000)
committerniruiyu <niruiyu@Edk2>
Wed, 27 May 2015 01:22:13 +0000 (01:22 +0000)
commitedf289685b9244d27602addd9ea5d933fade839f
treeb9da7f4fa23c5359ddcce72d55923804e73d8c20
parente6557276f0cf3c114dc881be2478cf724b171e39
MdeModulePkg: Fix PciBus hang issue

LocatePciExpressCapabilityRegBlock () doesn't check the return status of Pci.Read().
Certain platform's PciRootBridge.Pci.Read() doesn't support PCIE access causing the CapabilityEntry not updated.
If the uninitialized CapabilityEntry equals to a big enough initial value, the while-loop will never end.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17513 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Pci/PciBusDxe/PciCommand.c