linux/drivers/pinctrl/nxp
Jared Kangas 6010d4d8b5 pinctrl: s32cc: initialize gpio_pin_config::list after kmalloc()
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>
History 2025-11-18 23:56:11 +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-11-18 23:56:11 +01:00
pinctrl-s32g2.c pinctrl: s32: add missing pins definitions 2024-10-09 18:16:56 +02:00