diff options
author | Alexander Popov <alex.popov@linux.com> | 2016-07-03 03:24:08 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-07-11 17:23:48 +0200 |
commit | a1b7b1a57b9919a0abb6c93fca04ac9cf840c992 (patch) | |
tree | fbbcc4251eba55cb250e31acca7e87282fb9580b /kernel/irq/ipi.c | |
parent | 99e9d958726c04cec3e36902d8583fdd8cb5b1bb (diff) | |
download | linux-a1b7b1a57b9919a0abb6c93fca04ac9cf840c992.tar.gz |
irqdomain: Fix irq_domain_alloc_irqs_recursive() error handling
If an irq_domain is auto-recursive and irq_domain_alloc_irqs_recursive()
for its parent has returned an error, then do return and avoid calling
irq_domain_free_irqs_recursive() uselessly, because:
- if domain->ops->alloc() had failed for an auto-recursive irq_domain,
then irq_domain_free_irqs_recursive() had already been called;
- if domain->ops->alloc() had failed for a not auto-recursive irq_domain,
then there is nothing to free at all.
Signed-off-by: Alexander Popov <alex.popov@linux.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Link: http://lkml.kernel.org/r/1467505448-2850-1-git-send-email-alex.popov@linux.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/ipi.c')
0 files changed, 0 insertions, 0 deletions