lkml.org 
[lkml]   [2008]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] error missed ifndef CONFIG_HAVE_SPARSE_IRQ
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;
}

\
 
 \ /
  Last update: 2008-09-05 16:11    [from the cache]
©2003-2011 Jasper Spaans