[PATCH] soc: realview: Fix memory leak in realview_soc_probe()

Linus Walleij linus.walleij at linaro.org
Wed Sep 13 05:08:40 PDT 2023


On Thu, Nov 17, 2022 at 9:46 AM Yuan Can <yuancan at huawei.com> wrote:

> If of_property_read_string() failed, soc_dev_attr should be freed before
> return, otherwise the soc_dev_attr leaked.
>
> Fixes: a2974c9c1f83 ("soc: add driver for the ARM RealView")
> Signed-off-by: Yuan Can <yuancan at huawei.com>

Hi Yuan,

thanks for your patch! I have applied it to my tree and I will
send it upstream ASAP.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list