Re: [PATCH] clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return

From: Krzysztof Kozlowski
Date: Wed Apr 07 2021 - 04:59:47 EST


On 06/04/2021 19:01, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> There is an error return path that is not kfree'ing socfpga_clk leading
> to a memory leak. Fix this by adding in the missing kfree call.
>
> Addresses-Coverity: ("Resource leak")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> ---
> drivers/clk/socfpga/clk-gate-a10.c | 1 +
> 1 file changed, 1 insertion(+)


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>


Best regards,
Krzysztof