Re: [PATCH] pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map()

From: Linus Walleij
Date: Tue Apr 16 2024 - 09:35:21 EST


On Mon, Apr 15, 2024 at 12:54 PM Zeng Heng <zengheng4@xxxxxxxxxx> wrote:

> If we fail to allocate propname buffer, we need to drop the reference
> count we just took. Because the pinctrl_dt_free_maps() includes the
> droping operation, here we call it directly.
>
> Fixes: 91d5c5060ee2 ("pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map")
> Suggested-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Zeng Heng <zengheng4@xxxxxxxxxx>

Patch applied for fixes.

Yours,
Linus Walleij