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

From: Stephen Boyd
Date: Wed Apr 07 2021 - 19:29:46 EST


Quoting Colin King (2021-04-06 10:01:15)
> 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>
> ---

Applied to clk-next