Messages in this thread Patch in this message | | | Date | Tue, 9 Sep 2003 13:13:10 -0700 | Subject | [PATCH] deal with lack of acpi prt entries gracefully | From | (Jesse Barnes) |
| |
Instead of going into an infinite loop because the list isn't setup yet, just return NULL if there are no prt entries.
Jesse
diff -Nru a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c --- a/drivers/acpi/pci_irq.c Tue Sep 9 10:24:14 2003 +++ b/drivers/acpi/pci_irq.c Tue Sep 9 10:24:14 2003 @@ -71,6 +71,9 @@ ACPI_FUNCTION_TRACE("acpi_pci_irq_find_prt_entry"); + if (!acpi_prt.count) + return_PTR(NULL); + /* * Parse through all PRT entries looking for a match on the specified * PCI device's segment, bus, device, and pin (don't care about func). - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |