summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRadiy Zhambakiev <r.zhambakiev@prosoftsystems.ru>2026-10-02 11:36:52 +0000
committerLee Jones <lee@kernel.org>2026-10-15 16:29:47 +0100
commit0473a5b0663663b75573bf284beb77459e07c461 (patch)
treede6f61fa404d5af5170e3f8e8e4112a7fb568b37 /scripts
parent4c06f3659671be3c95e18519bf40e32ecde21382 (diff)
mfd: tps65217: Fix NULL pointer dereference on IRQ init failure
tps65217_probe() ignores the return value of tps65217_irq_init(), so when the irq domain creation fails the probe still completes and the driver ends up bound with a NULL tps->irq_domain. Unloading the module then makes tps65217_remove() call irq_domain_remove() on the NULL pointer and oops the kernel. On top of that, irq_find_mapping() may fall back to the default irq domain and dispose of mappings that belong to other interrupt controllers. Check the return value and abort the probe on failure so the error is reported and no inconsistent state is left for removal. Fixes: 6556bdacf646fcaa ("mfd: tps65217: Add support for IRQs") Cc: stable@vger.kernel.org Signed-off-by: Radiy Zhambakiev <r.zhambakiev@prosoftsystems.ru> Reviewed-by: Andreas Kemnade <andreas@kemnade.info> Link: https://patch.msgid.link/20261002113624.178588-2-r.zhambakiev@prosoftsystems.ru Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions