summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorArtem Shimko <a.shimko.dev@gmail.com>2025-11-04 17:54:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-17 17:05:00 +0300
commitd31228143a489ba6ba797896a07541ce06828c09 (patch)
treee4464983d2b7fb90697643a29e2acbc9b12872e0 /include/linux/stackprotector.h
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff)
downloadlinux-d31228143a489ba6ba797896a07541ce06828c09.tar.xz
serial: 8250_dw: handle clock enable errors in runtime_resume
Add error checking for clk_prepare_enable() calls in dw8250_runtime_resume(). Currently if either clock fails to enable, the function returns success while leaving clocks in inconsistent state. This change implements comprehensive error handling by checking the return values of both clk_prepare_enable() calls. If the second clock enable operation fails after the first clock has already been successfully enabled, the code now properly cleans up by disabling and unpreparing the first clock before returning. The error code is then propagated to the caller, ensuring that clock enable failures are properly reported rather than being silently ignored. Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com> Link: https://patch.msgid.link/20251104145433.2316165-2-a.shimko.dev@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions