public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] error missed ifndef CONFIG_HAVE_SPARSE_IRQ
@ 2008-09-05 14:07 Dean Nelson
  2008-09-05 14:46 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Dean Nelson @ 2008-09-05 14:07 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner; +Cc: Yinghai Lu, linux-kernel

An error return from create_irq_nr() is 0, but an error return from
create_irq() is -1.

Signed-off-by: Dean Nelson <dcn@sgi.com>

---

 drivers/pci/htirq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/pci/htirq.c
===================================================================
--- linux.orig/drivers/pci/htirq.c	2008-09-05 08:04:21.000000000 -0500
+++ linux/drivers/pci/htirq.c	2008-09-05 08:07:45.000000000 -0500
@@ -144,7 +144,7 @@ int __ht_create_irq(struct pci_dev *dev,
 #else
 	irq = create_irq();
 #endif
-	if (irq == 0) {
+	if (irq <= 0) {
 		kfree(cfg);
 		return -EBUSY;
 	}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-05 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 14:07 [PATCH] error missed ifndef CONFIG_HAVE_SPARSE_IRQ Dean Nelson
2008-09-05 14:46 ` Ingo Molnar
2008-09-05 17:03   ` Yinghai Lu
2008-09-05 17:07     ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox