[PATCH 0/2] mfd: tps65217: Handle IRQ initialization errors

From: Жамбакиев Радий Рикардинович

Date: Fri Aug 21 2026 - 03:56:51 EST


The tps65217 MFD driver ignores two error conditions when setting up
its interrupt handling, which can leave the driver bound in a broken
state. This series adds the missing error checks.

Patch 1 fixes a kernel crash: if the irq domain creation fails,
probe ignores the error and a later module unload dereferences the
NULL irq domain in tps65217_remove().

Patch 2 checks the error when masking all interrupt sources, so the
driver's software mask cannot diverge from the hardware state.

Radiy Zhambakiev (2):
mfd: tps65217: Fix NULL pointer dereference on IRQ init failure
mfd: tps65217: Check return value when masking interrupt sources

drivers/mfd/tps65217.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

--
2.53.0