diff options
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/generic-chip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/irq/generic-chip.c b/kernel/irq/generic-chip.c index 8743d62fded7..95575d8d5392 100644 --- a/kernel/irq/generic-chip.c +++ b/kernel/irq/generic-chip.c | |||
@@ -359,6 +359,9 @@ static int irq_map_generic_chip(struct irq_domain *d, unsigned int virq, | |||
359 | 359 | ||
360 | idx = hw_irq % dgc->irqs_per_chip; | 360 | idx = hw_irq % dgc->irqs_per_chip; |
361 | 361 | ||
362 | if (test_bit(idx, &gc->unused)) | ||
363 | return -ENOTSUPP; | ||
364 | |||
362 | if (test_bit(idx, &gc->installed)) | 365 | if (test_bit(idx, &gc->installed)) |
363 | return -EBUSY; | 366 | return -EBUSY; |
364 | 367 | ||