mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] bus: reject devices without platform match data
@ 2026-10-20  9:36 Jiale Yao
  2026-10-20  9:36 ` [PATCH 1/3] bus: imx-aipstz: reject devices without " Jiale Yao
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jiale Yao @ 2026-10-20  9:36 UTC (permalink / raw)
  To: Frank Li, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Gatien Chevallier, Maxime Coquelin, Alexandre Torgue, Shawn Guo,
	Laurentiu Mihalcea, Daniel Baluta, Huang Shijie, imx,
	linux-arm-kernel, linux-kernel, linux-stm32

Platform driver_override can bind a device to a platform driver without
matching its OF table. The match-data helpers then return NULL.

The i.MX AIPSTZ and WEIM drivers dereference the missing data during
probe. The STM32 RIFSC driver stores it for later dereference through
its debugfs configuration dump. Add checks before each first use so
these drivers reject unsupported devices instead of dereferencing NULL.

Each change is independent and can be applied separately.

Jiale Yao (3):
  bus: imx-aipstz: reject devices without match data
  bus: imx-weim: reject devices without match data
  bus: stm32-rifsc: reject debugfs setup without match data

 drivers/bus/imx-aipstz.c  | 2 ++
 drivers/bus/imx-weim.c    | 6 +++++-
 drivers/bus/stm32_rifsc.c | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-10-20 16:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20  9:36 [PATCH 0/3] bus: reject devices without platform match data Jiale Yao
2026-10-20  9:36 ` [PATCH 1/3] bus: imx-aipstz: reject devices without " Jiale Yao
2026-10-20 16:04   ` Frank Li
2026-10-20  9:36 ` [PATCH 2/3] bus: imx-weim: " Jiale Yao
2026-10-20 16:06   ` Frank Li
2026-10-20  9:36 ` [PATCH 3/3] bus: stm32-rifsc: reject debugfs setup " Jiale Yao

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®