aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-11-11 21:19:43 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-11-11 21:19:43 +0000
commitfd7d14d30b985802df9dc1610e01576355308f38 (patch)
tree3787a72c4d0c9e68f98d764e302ee9caadb73d5a /sys
parentfa61a6ff52b68535f2046370c84a06f3848aabf2 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/mptable.c2
-rw-r--r--sys/i386/i386/mptable.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c
index 7222748571ba..d4683d5fb941 100644
--- a/sys/amd64/amd64/mptable.c
+++ b/sys/amd64/amd64/mptable.c
@@ -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);
diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c
index 7222748571ba..d4683d5fb941 100644
--- a/sys/i386/i386/mptable.c
+++ b/sys/i386/i386/mptable.c
@@ -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);