[PATCH 0/4] pinctrl: free maps on DT mapping failures
From: Jiale Yao
Date: Thu Sep 24 2026 - 07:22:14 EST
Several pinctrl drivers reserve map storage before appending mux and
configuration entries while translating device tree nodes. If a later
operation fails, their error paths free only temporary configuration data
and leave the partially built map allocated.
Commit 17007cd700601777d9ee203a13d97e64ece3a10f fixed the same cleanup
problem in the generic mapping helper. These drivers use their own mapping
callbacks and need equivalent error handling.
Free the accumulated map and clear the output parameters on every failure
path in the Spreadtrum, Renesas RZ/N1, Tegra XUSB, and Samsung drivers.
Each patch changes one driver and remains independently buildable.
Jiale Yao (4):
pinctrl: sprd: free maps on DT map failure
pinctrl: renesas: rzn1: free maps on DT map failure
pinctrl: tegra: xusb: free maps on DT map failure
pinctrl: samsung: free maps on DT map failure
drivers/pinctrl/renesas/pinctrl-rzn1.c | 10 +++++++--
drivers/pinctrl/samsung/pinctrl-samsung.c | 26 ++++++++++++++--------
drivers/pinctrl/sprd/pinctrl-sprd.c | 6 +++++
drivers/pinctrl/tegra/pinctrl-tegra-xusb.c | 8 ++++++-
4 files changed, 38 insertions(+), 12 deletions(-)
--
2.34.1