PCI: Fixing freeze when detecting many PCI devices
authorErwan Velu <erwan.velu@free.fr>
Tue, 14 Apr 2009 19:41:05 +0000 (21:41 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 15 Apr 2009 23:23:46 +0000 (16:23 -0700)
commitc0e760fdb7ce04a67f0c7f47535eb710bc5a6e7f
treedbe0ee58f4c911dfb82311ea0526cbdc990162b1
parent620105c70237256ce194ae1a22afaef9fd83d3e1
PCI: Fixing freeze when detecting many PCI devices

Impact: Prevent hard freeze when having many PCI devices

A user reported that calling gather_additional_pci_config() when many
PCI devices exists on a host could lead to a complete freeze.
This patch remove some useless code and use for_each_pci_func() instead.
This prevent useless memory allocation.
com32/lib/pci/scan.c