[PATCH 0/3] bus: reject devices without platform match data
From: Jiale Yao
Date: Tue Oct 20 2026 - 05:41:34 EST
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