diff options
Diffstat (limited to 'kernel/irq/irqdomain.c')
-rw-r--r-- | kernel/irq/irqdomain.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 79ae0ebb90ba..b1f774cfd089 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c | |||
@@ -445,8 +445,7 @@ unsigned int irq_create_mapping(struct irq_domain *domain, | |||
445 | } | 445 | } |
446 | 446 | ||
447 | if (irq_setup_virq(domain, virq, hwirq)) { | 447 | if (irq_setup_virq(domain, virq, hwirq)) { |
448 | if (domain->revmap_type != IRQ_DOMAIN_MAP_LEGACY) | 448 | irq_free_desc(virq); |
449 | irq_free_desc(virq); | ||
450 | return 0; | 449 | return 0; |
451 | } | 450 | } |
452 | 451 | ||