linux-loongson/drivers/pinctrl/berlin
Yuan Chen 8f6f303551 pinctrl: berlin: fix memory leak in berlin_pinctrl_build_state()
In the original implementation, krealloc() failure handling incorrectly
assigned the original memory pointer to NULL after kfree(), causing a
memory leak when reallocation failed.

Fixes: de845036f9 ("pinctrl: berlin: fix error return code of berlin_pinctrl_build_state()")
Signed-off-by: Yuan Chen <chenyuan@kylinos.cn>
Link: https://lore.kernel.org/20250620015343.21494-1-chenyuan_fl@163.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-06-24 21:17:11 +02:00
..
berlin-bg2.c pinctrl: Use device_get_match_data() 2023-10-30 14:50:42 +01:00
berlin-bg2cd.c pinctrl: Use device_get_match_data() 2023-10-30 14:50:42 +01:00
berlin-bg2q.c pinctrl: Use device_get_match_data() 2023-10-30 14:50:42 +01:00
berlin-bg4ct.c pinctrl: Use device_get_match_data() 2023-10-30 14:50:42 +01:00
berlin.c pinctrl: berlin: fix memory leak in berlin_pinctrl_build_state() 2025-06-24 21:17:11 +02:00
berlin.h pinctrl: berlin: Make use of struct pinfunction 2024-06-17 09:23:34 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
pinctrl-as370.c pinctrl: Use device_get_match_data() 2023-10-30 14:50:42 +01:00