aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorArtem Shimko <[email protected]>2025-10-19 09:51:31 +0000
committerGreg Kroah-Hartman <[email protected]>2025-10-22 10:13:12 +0000
commitdaeb4037adf7d3349b4a1fb792f4bc9824686a4b (patch)
tree2fcd356fde516779a135e3b338518975eba7b72a /lib/test_fortify/write_overflow-strlcpy-src.c
parentdt-bindings: serial: sh-sci: Fix r8a78000 interrupts (diff)
downloadkernel-daeb4037adf7d3349b4a1fb792f4bc9824686a4b.tar.gz
kernel-daeb4037adf7d3349b4a1fb792f4bc9824686a4b.zip
serial: 8250_dw: handle reset control deassert error
Check the return value of reset_control_deassert() in the probe function to prevent continuing probe when reset deassertion fails. Previously, reset_control_deassert() was called without checking its return value, which could lead to probe continuing even when the device reset wasn't properly deasserted. The fix checks the return value and returns an error with dev_err_probe() if reset deassertion fails, providing better error handling and diagnostics. Fixes: acbdad8dd1ab ("serial: 8250_dw: simplify optional reset handling") Cc: stable <[email protected]> Signed-off-by: Artem Shimko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions