summaryrefslogtreecommitdiffstats
path: root/fs/sysv
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2020-11-02 13:06:31 +0100
committerMarc Zyngier <maz@kernel.org>2020-12-11 15:47:50 +0100
commitfc6c7cd3878641fd43189f15697e7ad0871f5c1a (patch)
treec9ecc89fd19f379620331b57c5879d012a480fa7 /fs/sysv
parentirqchip/ti-sci-inta: Fix printing of inta id on probe success (diff)
downloadlinux-fc6c7cd3878641fd43189f15697e7ad0871f5c1a.tar.xz
linux-fc6c7cd3878641fd43189f15697e7ad0871f5c1a.zip
irqchip/ti-sci-intr: Fix freeing of irqs
ti_sci_intr_irq_domain_free() assumes that out_irq of intr is stored in data->chip_data and uses it for calling ti_sci irq_free() and then mark the out_irq as available resource. But ti_sci_intr_irq_domain_alloc() is storing p_hwirq(parent's hardware irq) which is translated from out_irq. This is causing resource leakage and eventually out_irq resources might be exhausted. Fix ti_sci_intr_irq_domain_alloc() by storing the out_irq in data->chip_data. Fixes: a5b659bd4bc7 ("irqchip/ti-sci-intr: Add support for INTR being a parent to INTR") Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20201102120631.11165-1-lokeshvutla@ti.com
Diffstat (limited to 'fs/sysv')
0 files changed, 0 insertions, 0 deletions