summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irqchip.c
diff options
context:
space:
mode:
authorMa Ke <make24@iscas.ac.cn>2024-08-20 17:28:43 +0800
committerThomas Gleixner <tglx@linutronix.de>2024-08-20 17:05:32 +0200
commitc5af2c90ba5629f0424a8d315f75fb8d91713c3c (patch)
tree1e4f1a5c3c353467ff076cc2e9ecfcc10a6c1e83 /drivers/irqchip/irqchip.c
parentefe81b7bdf7d882d0ce3d183f1571321046da8f1 (diff)
downloadlwn-c5af2c90ba5629f0424a8d315f75fb8d91713c3c.tar.gz
lwn-c5af2c90ba5629f0424a8d315f75fb8d91713c3c.zip
irqchip/gic-v2m: Fix refcount leak in gicv2m_of_init()
gicv2m_of_init() fails to perform an of_node_put() when of_address_to_resource() fails, leading to a refcount leak. Address this by moving the error handling path outside of the loop and making it common to all failure modes. Fixes: 4266ab1a8ff5 ("irqchip/gic-v2m: Refactor to prepare for ACPI support") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Marc Zyngier <maz@kernel.org> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/all/20240820092843.1219933-1-make24@iscas.ac.cn
Diffstat (limited to 'drivers/irqchip/irqchip.c')
0 files changed, 0 insertions, 0 deletions