]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Fix memory leak in realtime_counter_init()
authorChen Hui <judy.chenhui@huawei.com>
Tue, 8 Nov 2022 14:19:17 +0000 (22:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:32 +0000 (09:32 +0100)
commit27d78a4acdca818a3cc615a3dcc90399fe402347
treebf1cbe34952cb6698fb8b4b496a0a918fab087f7
parentc00376a8ecd833e700a8777500b8134da895c1bf
ARM: OMAP2+: Fix memory leak in realtime_counter_init()

[ Upstream commit dc2d98fba34ceef62d15c8eb82aa87eacf9fc737 ]

The "sys_clk" resource is malloced by clk_get(),
it is not released when the function return.

Fixes: 15106d577ade ("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>
arch/arm/mach-omap2/timer.c