diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-11-23 11:16:22 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-12-08 17:16:14 -0800 |
commit | 0b8ba891ad4d1ef6bfa4c72efc83f9f9f855f68b (patch) | |
tree | 3dca1d16dfdf0b9579acf0d3f7271895d8695aa4 /scripts | |
parent | cfd3ffb36f0d566846163118651d868e607300ba (diff) |
clk: socfpga: Fix memory leak in socfpga_gate_init()
Free @socfpga_clk and @ops on the error path to avoid memory leak issue.
Fixes: a30a67be7b6e ("clk: socfpga: Don't have get_parent for single parent ops")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20221123031622.63171-1-xiujianfeng@huawei.com
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions