summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorLong Zhao <longzhao@ambarella.com>2026-11-03 12:47:17 +0800
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-05 13:36:26 +0100
commit80415a6ff295b03dab98ef55598c72be66945d82 (patch)
treee8cb7b7d7b547bbce68aafb6ef7e0e9756daf4a1 /rust/kernel/alloc/allocator
parent18cc1d1ad94df8a6760fff2617d3d6923550cba0 (diff)
gpio: regmap: free the irqchip if adding the irq domain fails
gpio_regmap_register() creates a regmap irqchip and then calls gpiochip_irqchip_add_domain(). If that call fails, the error path only removes the gpiochip, so the irqchip and its domain leak. Free the irqchip there when this function allocated it. An external irq domain is not affected: irq_chip_data stays NULL and the caller owns that domain. Fixes: 553b75d4bfe9 ("gpio: regmap: Allow to allocate regmap-irq device") Cc: Michael Walle <mwalle@kernel.org> Signed-off-by: Long Zhao <longzhao@ambarella.com> Reviewed-by: Michael Walle <mwalle@kernel.org> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20261103-gpio-regmap-irqchip-leak-v1-1-d038a20840f7@ambarella.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions