patch-2.4.23 linux-2.4.23/drivers/acpi/pci_irq.c

Next file: linux-2.4.23/drivers/acpi/pci_link.c
Previous file: linux-2.4.23/drivers/acpi/parser/psparse.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/acpi/pci_irq.c linux-2.4.23/drivers/acpi/pci_irq.c
@@ -73,6 +73,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).

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)