[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkda6EYeKKpVbJ=iuQTC+X2JDmppf+Bq2Lq8MeyHTCOPfJw@mail.gmail.com>
Date: Tue, 24 Jun 2025 21:17:55 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Yuan Chen <chenyuan_fl@....com>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Yuan Chen <chenyuan@...inos.cn>
Subject: Re: [PATCH] pinctrl: berlin: fix memory leak in berlin_pinctrl_build_state()
On Fri, Jun 20, 2025 at 3:53 AM Yuan Chen <chenyuan_fl@....com> wrote:
> From: Yuan Chen <chenyuan@...inos.cn>
>
> In the original implementation, krealloc() failure handling incorrectly
> assigned the original memory pointer to NULL after kfree(), causing a
> memory leak when reallocation failed.
>
> Fixes: de845036f997 ("pinctrl: berlin: fix error return code of berlin_pinctrl_build_state()")
> Signed-off-by: Yuan Chen <chenyuan@...inos.cn>
Patch applied!
Yours,
Linus Walleij
Powered by blists - more mailing lists