ARM: OMAP2+: Fix memory leak in realtime_counter_init()
stable inclusion from stable-v5.10.173 commit 4862c41d5f3bee1ec64c979c82bd8cfe96b78f7d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4862c41d5f3bee1ec64c979c82bd8cfe96b78f7d -------------------------------- [ Upstream commit ed8167cb ] The "sys_clk" resource is malloced by clk_get(), it is not released when the function return. Fixes: fa6d79d2 ("ARM: OMAP: Add initialisation for the real-time counter.") Signed-off-by:Chen Hui <judy.chenhui@huawei.com> Message-Id: <20221108141917.46796-1-judy.chenhui@huawei.com> Signed-off-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment