linux/drivers/pinctrl/nxp
Jared Kangas 39697862fc pinctrl: s32cc: initialize gpio_pin_config::list after kmalloc()
[ Upstream commit 6010d4d8b5 ]

s32_pmx_gpio_request_enable() does not initialize the newly-allocated
gpio_pin_config::list before adding it to s32_pinctrl::gpio_configs.
This could result in a linked list corruption.

Initialize the new list_head with INIT_LIST_HEAD() to fix this.

Fixes: fd84aaa817 ("pinctrl: add NXP S32 SoC family support")
Signed-off-by: Jared Kangas <jkangas@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-12-01 11:43:33 +01:00
..
Kconfig pinctrl: add NXP S32 SoC family support 2023-03-06 14:27:15 +01:00
Makefile pinctrl: add NXP S32 SoC family support 2023-03-06 14:27:15 +01:00
pinctrl-s32.h pinctrl: s32: separate const device data from struct s32_pinctrl_soc_info 2023-06-02 09:36:25 +02:00
pinctrl-s32cc.c pinctrl: s32cc: initialize gpio_pin_config::list after kmalloc() 2025-12-01 11:43:33 +01:00
pinctrl-s32g2.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00