aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/htirq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/htirq.c')
-rw-r--r--drivers/pci/htirq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/htirq.c b/drivers/pci/htirq.c
index 847912c5f4a3..5d50b54bb51c 100644
--- a/drivers/pci/htirq.c
+++ b/drivers/pci/htirq.c
@@ -105,7 +105,7 @@ int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update)
105 spin_unlock_irqrestore(&ht_irq_lock, flags); 105 spin_unlock_irqrestore(&ht_irq_lock, flags);
106 106
107 max_irq = (data >> 16) & 0xff; 107 max_irq = (data >> 16) & 0xff;
108 if ( idx > max_irq) 108 if (idx > max_irq)
109 return -EINVAL; 109 return -EINVAL;
110 110
111 cfg = kmalloc(sizeof(*cfg), GFP_KERNEL); 111 cfg = kmalloc(sizeof(*cfg), GFP_KERNEL);