]> git.baikalelectronics.ru Git - kernel.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)
committerArnd Bergmann <arnd@arndb.de>
Fri, 27 May 2022 13:55:44 +0000 (15:55 +0200)
commit730ae6dc4f4d9ff5636a94254418c96ea96c6c35
tree92524973c6cc4124c6de8f61e6ec8c2a05ff0572
parentc2f1f096aef2518574f77c6e84607e5c83412d4f
ep93xx: clock: Do not return the address of the freed memory

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

Fixes: 5f569cb5941e ("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>
arch/arm/mach-ep93xx/clock.c