]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ep93xx: clock: Do not return the address of the freed memory
authorGenjian Zhang <zhanggenjian123@gmail.com>
Tue, 17 May 2022 07:39:46 +0000 (15:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:41:21 +0000 (18:41 +0200)
commit044118d329134111a6cd6a09d5c02ba59c05eccb
tree9163c366f401f88ec75eb8bd81d3582f961efc22
parenta00a6c738190e94a3d49139c2f805306d886a27a
ep93xx: clock: Do not return the address of the freed memory

[ Upstream commit 8a7322a3a05f75e8a4902bdf8129aecd37d54fe9 ]

Avoid return freed memory addresses,Modified to the actual error
return value of clk_register().

Fixes: 9645ccc7bd7a ("ep93xx: clock: convert in-place to COMMON_CLK")
Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-ep93xx/clock.c