mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
f53b986fb2
The can_datahandler() function calls iob_tryadd_queue() to enqueue received CAN data. Since iob_tryadd_queue() may return a negative value on failure, the error was previously not properly handled. Update can_datahandler() to propagate the return value so callers can detect and handle queueing failures correctly. Signed-off-by: zhaohaiyang1 <zhaohaiyang1@xiaomi.com>