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)
committerErwan Velu <erwan.velu@free.fr>
Tue, 14 Apr 2009 19:41:05 +0000 (21:41 +0200)
commit5fcf426a086debfce4b694da1e186820fcb43478
tree05589ce74d365d6af6bc924967a8206d137a66d3
parent6528356ce321942cf2d1060f84f4fc5f73408249
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