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:
parent
fa61a6ff52
commit
fd7d14d30b
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user