Don't probe busses in the MP Table for the MP Table PCI bridge drivers

if the bus number doesn't correspond to a PCI bus in the MP Table.

Reported by:	jhay
This commit is contained in:
John Baldwin 2003-11-11 21:19:43 +00:00
parent fa61a6ff52
commit fd7d14d30b
2 changed files with 4 additions and 0 deletions

View File

@ -893,6 +893,8 @@ mptable_pci_probe_table(int bus)
return (EINVAL);
if (pci0 == -1 || pci0 + bus > mptable_maxbusid)
return (ENXIO);
if (busses[pci0 + bus].bus_type != PCI)
return (ENXIO);
args.bus = pci0 + bus;
args.found = 0;
mptable_walk_table(mptable_pci_probe_table_handler, &args);

View File

@ -893,6 +893,8 @@ mptable_pci_probe_table(int bus)
return (EINVAL);
if (pci0 == -1 || pci0 + bus > mptable_maxbusid)
return (ENXIO);
if (busses[pci0 + bus].bus_type != PCI)
return (ENXIO);
args.bus = pci0 + bus;
args.found = 0;
mptable_walk_table(mptable_pci_probe_table_handler, &args);