Re: [PATCH v2 3/4] pinctrl: tegra: xusb: free maps on DT map failure

From: Linus Walleij

Date: Wed Oct 07 2026 - 06:46:58 EST


On Sat, Oct 3, 2026 at 10:32 AM Jiale Yao <yaojiale02@xxxxxxx> wrote:

> tegra_xusb_padctl_parse_subnode() can append mappings before a later
> child or configuration operation fails. The top-level callback currently
> returns the error while retaining all mappings allocated for earlier
> children.
>
> Free the accumulated 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.
>
> Signed-off-by: Jiale Yao <yaojiale02@xxxxxxx>

Patch applied.

Yours,
Linus Walleij