Re: [PATCH v2 2/4] pinctrl: renesas: rzn1: free maps on DT map failure
From: Linus Walleij
Date: Wed Oct 07 2026 - 06:45:03 EST
On Sat, Oct 3, 2026 at 10:32 AM Jiale Yao <yaojiale02@xxxxxxx> wrote:
> 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@xxxxxxx>
Geert will look into this patch and handle it.
Yours,
Linus Walleij