diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2002-10-05 02:16:49 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2002-10-05 02:16:49 +0000 |
commit | be995d42bcbe8b7c3301c4c726358ca457e43331 (patch) | |
tree | 06387d9b458d25f9116655228580166cbbf74ba2 /sys/dev/acpica/acpi_pcib_acpi.c | |
parent | 479e7dd9d8e6beba682e14774bc747378747adf8 (diff) | |
download | FreeBSD-src-be995d42bcbe8b7c3301c4c726358ca457e43331.zip FreeBSD-src-be995d42bcbe8b7c3301c4c726358ca457e43331.tar.gz |
Make sure that ACPI PCI driver probe routine call pci_cfgregopen()
before start accessing PCI config space.
Reviewed by: jhb
Diffstat (limited to 'sys/dev/acpica/acpi_pcib_acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index d809723..0f70905 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -115,6 +115,9 @@ acpi_pcib_acpi_probe(device_t dev) !acpi_disabled("pci") && acpi_MatchHid(dev, "PNP0A03")) { + if (!pci_cfgregopen()) + return(ENXIO); + /* * Set device description */ |