summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-10-03 16:31:54 +0800
committerLinus Walleij <linusw@kernel.org>2026-10-07 12:32:59 +0200
commite873c665e503ebfb6dafaf9346c3956695686226 (patch)
tree84efd9cbdb431e123dffef4840b9d55f211461de /tools/perf/scripts/python
parentc4e625828ac1b9dba1c055c6d631b447e44b0ab5 (diff)
downloadlinux-next-e873c665e503ebfb6dafaf9346c3956695686226.tar.gz
linux-next-e873c665e503ebfb6dafaf9346c3956695686226.zip
pinctrl: sprd: free maps on DT map failure
sprd_dt_node_to_map() reserves map storage before adding mux and configuration entries. If a later operation fails, the error path only frees the temporary configurations and leaves the map allocation reachable through the output pointer. Free the partially built map on failure. The caller ignores the output parameters when the mapping callback returns an error, so they do not need to be reset after freeing the map. Fixes: 41d32cfce1ae ("pinctrl: sprd: Add Spreadtrum pin control driver") Signed-off-by: Jiale Yao <yaojiale02@163.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions