summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_pcib.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-04-19 17:52:20 +0000
committernjl <njl@FreeBSD.org>2004-04-19 17:52:20 +0000
commitfce4fe318a189c479fcaf473165e5cd331c8bc84 (patch)
tree94e0aece0437dcc034c9feaf4c687abc72721744 /sys/dev/acpica/acpi_pcib.c
parentf842d82265dc159c02d96464aed8d9ce2fb59d72 (diff)
downloadFreeBSD-src-fce4fe318a189c479fcaf473165e5cd331c8bc84.zip
FreeBSD-src-fce4fe318a189c479fcaf473165e5cd331c8bc84.tar.gz
Add a temporary workaround for acpi_AppendBufferResource() returning with
a NULL crsbuf pointer. This shouldn't happen if it returns AE_OK. We'll figure out why this is happening later. Submitted by: Bruno Ducrot <ducrot@poupinou.org>
Diffstat (limited to 'sys/dev/acpica/acpi_pcib.c')
-rw-r--r--sys/dev/acpica/acpi_pcib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c
index 8c8a028..3ba945c 100644
--- a/sys/dev/acpica/acpi_pcib.c
+++ b/sys/dev/acpica/acpi_pcib.c
@@ -369,6 +369,11 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
AcpiFormatException(status));
goto out;
}
+ /* XXX Figure out how this is happening when the append succeeds. */
+ if (crsbuf.Pointer == NULL) {
+ device_printf(pcib, "_CRS buf NULL after append?\n");
+ goto out;
+ }
if (ACPI_FAILURE(status = AcpiSetCurrentResources(lnkdev, &crsbuf))) {
device_printf(pcib, "_SRS failed for interrupt %d via %s - %s\n",
Interrupts[0], acpi_name(lnkdev),
OpenPOWER on IntegriCloud