[PATCH -next] clk: imx: scu: fix memleak on platform_device_add() fails

Stephen Boyd sboyd at kernel.org
Fri Sep 30 17:06:36 PDT 2022


Quoting Lin Yujun (2022-09-13 20:32:06)
> No error handling is performed when platform_device_add()
> fails. Add error processing before return, and modified
> the return value.
> 
> Fixes: 77d8f3068c63 ("clk: imx: scu: add two cells binding support")
> Signed-off-by: Lin Yujun <linyujun809 at huawei.com>
> ---

Reviewed-by: Stephen Boyd <sboyd at kernel.org>



More information about the linux-arm-kernel mailing list