linux-kernelorg-stable/drivers/greybus
Haotian Zhang e6df0f649c greybus: gb-beagleplay: Fix timeout handling in bootloader functions
wait_for_completion_timeout() returns the remaining jiffies
(at least 1) on success or 0 on timeout, but never negative
error codes. The current code incorrectly checks for negative
values, causing timeouts to be ignored and treated as success.

Check for a zero return value to correctly identify and
handle timeout events.

Fixes: 0cf7befa3e ("greybus: gb-beagleplay: Add firmware upload API")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20251121064027.571-1-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-11-26 14:40:59 +01:00
..
Kconfig
Makefile
arpc.h
bundle.c
connection.c
control.c
core.c
debugfs.c
es2.c
gb-beagleplay.c greybus: gb-beagleplay: Fix timeout handling in bootloader functions 2025-11-26 14:40:59 +01:00
greybus_trace.h
hd.c
interface.c
manifest.c
module.c
operation.c greybus: add WQ_PERCPU to alloc_workqueue users 2025-11-26 14:40:53 +01:00
svc.c greybus: svc: use string choice helpers instead of ternary operator 2025-08-19 12:50:31 +02:00
svc_watchdog.c