Skip to content
Commit 0b8ba891 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Stephen Boyd
Browse files

clk: socfpga: Fix memory leak in socfpga_gate_init()



Free @socfpga_clk and @ops on the error path to avoid memory leak issue.

Fixes: a30a67be ("clk: socfpga: Don't have get_parent for single parent ops")
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20221123031622.63171-1-xiujianfeng@huawei.com


Acked-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent cfd3ffb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment