]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
counter: stm32-timer-cnt: Add check for clk_enable()
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Mon, 4 Nov 2024 19:18:25 +0000 (19:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:03 +0000 (13:54 +0100)
commit7f343f245b30fa94bce0c6ff70a00878e9507c92
treee471682033861cf709dc8eb13188da1b8d8a2507
parent48d52d3168749e10c1c37cd4ceccd18625851741
counter: stm32-timer-cnt: Add check for clk_enable()

[ Upstream commit 842c3755a6bfbfcafa4a1438078d2485a9eb1d87 ]

Add check for the return value of clk_enable() in order to catch the
potential exception.

Fixes: c5b8425514da ("counter: stm32-timer-cnt: add power management support")
Fixes: ad29937e206f ("counter: Add STM32 Timer quadrature encoder")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Link: https://lore.kernel.org/r/20241104191825.40155-1-jiashengjiangcool@gmail.com
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/counter/stm32-timer-cnt.c