mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 12:49:00 +00:00
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> |
||
|---|---|---|
| .. | ||
| can.h | ||
| can_bufpool.c | ||
| can_callback.c | ||
| can_conn.c | ||
| can_getsockopt.c | ||
| can_input.c | ||
| can_notifier.c | ||
| can_poll.c | ||
| can_recvmsg.c | ||
| can_sendmsg.c | ||
| can_sendmsg_buffered.c | ||
| can_setsockopt.c | ||
| can_sockif.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||