diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-06 18:01:15 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-04-07 16:29:31 -0700 |
commit | 657d4d1934f75a2d978c3cf2086495eaa542e7a9 (patch) | |
tree | ea0b80a8078fb13ec99317be767fbebccffc989f /lib/dynamic_debug.c | |
parent | abbe1eff907f38d82de8a94000f15b56f6a0204b (diff) |
clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return
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>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions