From: jbarnes@sgi.com (Jesse Barnes)
To: andrew.grover@intel.com, linux-kernel@vger.kernel.org
Subject: [PATCH] deal with lack of acpi prt entries gracefully
Date: Tue, 9 Sep 2003 13:13:10 -0700 [thread overview]
Message-ID: <20030909201310.GB6949@sgi.com> (raw)
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).
next reply other threads:[~2003-09-09 20:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-09 20:13 Jesse Barnes [this message]
2003-09-09 20:43 ` [PATCH] deal with lack of acpi prt entries gracefully Andrew de Quincey
2003-09-09 21:17 ` Jesse Barnes
2003-09-09 21:38 ` Andrew de Quincey
2003-09-09 22:01 ` Jesse Barnes
2003-09-10 21:30 ` Andrew de Quincey
2003-09-10 21:38 ` Jesse Barnes
2003-09-11 20:40 ` Andrew de Quincey
2003-09-11 20:53 ` Jesse Barnes
2003-09-11 21:13 ` Andrew de Quincey
2003-09-11 21:20 ` Jesse Barnes
2003-09-11 22:00 ` Andrew de Quincey
2003-09-11 22:04 ` Jesse Barnes
-- strict thread matches above, loose matches on Subject: below --
2003-10-01 1:22 Brown, Len
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030909201310.GB6949@sgi.com \
--to=jbarnes@sgi.com \
--cc=andrew.grover@intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox