diff options
author | Yuan Chen <chenyuan@kylinos.cn> | 2025-06-20 09:27:08 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-06-24 21:17:01 +0200 |
commit | e3507c56cbb208d4f160942748c527ef6a528ba1 (patch) | |
tree | 9560f6c315b1c9e449504aa33c08b278fd48ad62 /tools/perf/scripts/python/parallel-perf.py | |
parent | b4102e35243338d966f73ade1fec66d88e8f55ac (diff) |
pinctrl: sunxi: Fix memory leak on krealloc failure
In sunxi_pctrl_dt_node_to_map(), when krealloc() fails to resize
the pinctrl_map array, the function returns -ENOMEM directly
without freeing the previously allocated *map buffer. This results
in a memory leak of the original kmalloc_array allocation.
Fixes: e11dee2e98f8 ("pinctrl: sunxi: Deal with configless pins")
Signed-off-by: Yuan Chen <chenyuan@kylinos.cn>
Link: https://lore.kernel.org/20250620012708.16709-1-chenyuan_fl@163.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions