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

Жамбакиев Радий Рикардинович posted 2 patches 1 month, 1 week ago
There is a newer version of this series
drivers/mfd/tps65217.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
[PATCH 0/2] mfd: tps65217: Handle IRQ initialization errors
Posted by Жамбакиев Радий Рикардинович 1 month, 1 week ago
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