Skip to content
Snippets Groups Projects
Commit 6f219891 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Greg Kroah-Hartman
Browse files

clk: socfpga: Fix memory leak in socfpga_gate_init()


[ Upstream commit 0b8ba891 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent dbd1a4fd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment