Re: [PATCH] ARM: mxs: fix memory leak in mxs_machine_init()

From: Shawn Guo
Date: Fri Nov 18 2022 - 20:54:43 EST


On Thu, Nov 17, 2022 at 10:13:15AM +0100, Marco Felsch wrote:
> On 22-11-17, Zheng Yongjun wrote:
> > If of_property_read_string() failed, 'soc_dev_attr' should be
> > freed before return. Otherwise there is a memory leak.
> >
> > Fixes: 2046338dcbc6 ("ARM: mxs: Use soc bus infrastructure")
> > Signed-off-by: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
>
> Reviewed-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>

Applied, thanks!