Commit 844757dc authored by Chen Hui's avatar Chen Hui Committed by sanglipeng
Browse files

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: default avatarChen Hui <judy.chenhui@huawei.com>
Message-Id: <20221108141917.46796-1-judy.chenhui@huawei.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent b70d2c10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment