diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-06 20:01:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-22 11:40:17 +0300 |
commit | 67537124ed522e0a249c79980b48bacac6f377c7 (patch) | |
tree | b8141af7e1a8fef39c8cfca7e2e220c2c5de97da /drivers/power | |
parent | 9ce2a83bc100822f2d6278bffc3d869b8c27ccff (diff) | |
download | linux-67537124ed522e0a249c79980b48bacac6f377c7.tar.xz |
clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return
[ Upstream commit 657d4d1934f75a2d978c3cf2086495eaa542e7a9 ]
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@canonical.com>
Link: https://lore.kernel.org/r/20210406170115.430990-1-colin.king@canonical.com
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions