mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] mfd: tps65217: Handle IRQ initialization errors
@ 2026-08-21  7:53 Жамбакиев Радий Рикардинович
  2026-08-21  7:53 ` [PATCH 1/2] mfd: tps65217: Fix NULL pointer dereference on IRQ init failure Жамбакиев Радий Рикардинович
  2026-08-21  7:54 ` [PATCH 2/2] mfd: tps65217: Check return value when masking interrupt sources Жамбакиев Радий Рикардинович
  0 siblings, 2 replies; 5+ messages in thread
From: Жамбакиев Радий Рикардинович @ 2026-08-21  7:53 UTC (permalink / raw)
  To: Aaro Koskinen
  Cc: Жамбакиев
	Радий
	Рикардинович,
	Andreas Kemnade, Kevin Hilman, Roger Quadros, Tony Lindgren,
	Lee Jones, Grygorii Strashko, Marcin Niestroj, linux-omap, mfd,
	linux-kernel, lvc-project

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-21 11:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-21  7:53 [PATCH 0/2] mfd: tps65217: Handle IRQ initialization errors Жамбакиев Радий Рикардинович
2026-08-21  7:53 ` [PATCH 1/2] mfd: tps65217: Fix NULL pointer dereference on IRQ init failure Жамбакиев Радий Рикардинович
2026-08-21  9:55   ` Andreas Kemnade
2026-08-21  7:54 ` [PATCH 2/2] mfd: tps65217: Check return value when masking interrupt sources Жамбакиев Радий Рикардинович
2026-08-21 11:48   ` Andreas Kemnade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®