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

Shawn Guo shawnguo at kernel.org
Fri Nov 18 17:41:01 PST 2022


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 at huawei.com>
> 
> Reviewed-by: Marco Felsch <m.felsch at pengutronix.de>

Applied, thanks!



More information about the linux-arm-kernel mailing list