diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2006-01-06 16:14:32 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2006-01-06 16:14:32 +0000 |
| commit | 8dc0e020233f42230cd91f94111c8fd8ed70b629 (patch) | |
| tree | 2d7548d8507cad0b714aee08a3d2e5a09cb345b4 /sys | |
| parent | 1152ba39fed760a5512b0a061bf0435ef9a4a7cc (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/acpica/acpi_pci_link.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c index 517fd2647b7b..91a4f5fc2b13 100644 --- a/sys/dev/acpica/acpi_pci_link.c +++ b/sys/dev/acpica/acpi_pci_link.c @@ -627,8 +627,11 @@ acpi_pci_link_add_reference(device_t dev, int index, device_t pcib, int slot, /* Bump the reference count. */ ACPI_SERIAL_BEGIN(pci_link); link = acpi_pci_link_lookup(dev, index); - if (link == NULL) - panic("%s: apparently invalid index %d", __func__, index); + if (link == NULL) { + device_printf(dev, "apparently invalid index %d\n", index); + ACPI_SERIAL_END(pci_link); + return; + } link->l_references++; if (link->l_routed) pci_link_interrupt_weights[link->l_irq]++; |
