1
linux/drivers/pinctrl/sophgo
Harshit Mogalapalli 4575962aee pinctrl: sophgo: fix double free in cv1800_pctrl_dt_node_to_map()
'map' is allocated using devm_* which takes care of freeing the allocated
data, but in error paths there is a call to pinctrl_utils_free_map()
which also does kfree(map) which leads to a double free.

Use kcalloc() instead of devm_kcalloc() as freeing is manually handled.

Fixes: a29d8e93e7 ("pinctrl: sophgo: add support for CV1800B SoC")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://lore.kernel.org/20241010111830.3474719-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2024-10-10 21:12:59 +02:00
..
Kconfig pinctrl: sophgo: add support for SG2002 SoC 2024-08-26 11:09:56 +02:00
Makefile pinctrl: sophgo: add support for SG2002 SoC 2024-08-26 11:09:56 +02:00
pinctrl-cv18xx.c pinctrl: sophgo: fix double free in cv1800_pctrl_dt_node_to_map() 2024-10-10 21:12:59 +02:00
pinctrl-cv18xx.h
pinctrl-cv1800b.c
pinctrl-cv1812h.c
pinctrl-sg2000.c pinctrl: sophgo: add support for SG2000 SoC 2024-08-26 11:09:56 +02:00
pinctrl-sg2002.c pinctrl: sophgo: add support for SG2002 SoC 2024-08-26 11:09:56 +02:00