mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
The map pointer is freed by pinctrl_utils_free_map(). It must not be a devm_ pointer or it leads to a double free when the device is unloaded. This is similar to a couple bugs Harshit Mogalapalli fixed earlier in commits3fd976afe9("pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func()") and4575962aee("pinctrl: sophgo: fix double free in cv1800_pctrl_dt_node_to_map()"). Fixes:a83c29e1d1("pinctrl: spacemit: add support for SpacemiT K1 SoC") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Yixun Lan <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>