[PATCH v2 4/4] pinctrl: samsung: free maps on DT map failure
Linus Walleij
linusw at kernel.org
Wed Oct 7 03:35:31 PDT 2026
On Sat, Oct 3, 2026 at 10:32 AM Jiale Yao <yaojiale02 at 163.com> wrote:
> samsung_dt_subnode_to_map() can reserve map storage before adding
> configuration entries. The no-child path returns its error directly, and
> the child path frees mappings on failure.
>
> Use one error path that frees the accumulated map in both cases. 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 at 163.com>
Peter will decide and merge this patch.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list