diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-10-03 16:31:55 +0800 |
|---|---|---|
| committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2026-11-02 10:49:28 +0100 |
| commit | f9edef88c5e138689a59b6d4150999ac8e94bf1f (patch) | |
| tree | 997a35ddf8fbc6c64652e65d65d08e308c16f4f5 /scripts/Makefile.thinlto | |
| parent | 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff) | |
| download | linux-next-f9edef88c5e138689a59b6d4150999ac8e94bf1f.tar.gz linux-next-f9edef88c5e138689a59b6d4150999ac8e94bf1f.zip | |
pinctrl: renesas: rzn1: Free maps on DT map failure
rzn1_dt_node_to_map_one() appends mappings for each DT node. If a
node fails after map storage has been reserved, the top-level callback
returns without releasing mappings built for the current and previous
nodes.
Free the accumulated map on every error path. 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.
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20261003083200.459705-3-yaojiale02@163.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
