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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| arpc.h | ||
| bundle.c | ||
| connection.c | ||
| control.c | ||
| core.c | ||
| debugfs.c | ||
| es2.c | ||
| gb-beagleplay.c | ||
| greybus_trace.h | ||
| hd.c | ||
| interface.c | ||
| manifest.c | ||
| module.c | ||
| operation.c | ||
| svc.c | ||
| svc_watchdog.c | ||