nuttx/net/can
OceanfromXiaomi f53b986fb2 can: propagate iob_tryadd_queue() failure in can_datahandler
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>
2026-01-07 08:31:06 +01:00
..
can.h can: propagate iob_tryadd_queue() failure in can_datahandler 2026-01-07 08:31:06 +01:00
can_bufpool.c net/can: can protocol uses a separate buffer to cache can data 2025-12-25 08:56:12 -03:00
can_callback.c can: propagate iob_tryadd_queue() failure in can_datahandler 2026-01-07 08:31:06 +01:00
can_conn.c net: change conn lock from mutex to rmutex 2025-12-29 09:42:18 +08:00
can_getsockopt.c net/can: can protocol uses a separate buffer to cache can data 2025-12-25 08:56:12 -03:00
can_input.c net/devif_callback: change flags type from uint16_t to uint32_t 2026-01-02 00:04:16 +08:00
can_notifier.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
can_poll.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
can_recvmsg.c net: replace net_sem*wait with conn_dev_sem*wait to simplify code logic 2026-01-02 07:48:06 -03:00
can_sendmsg.c net: replace net_sem*wait with conn_dev_sem*wait to simplify code logic 2026-01-02 07:48:06 -03:00
can_sendmsg_buffered.c net: replace net_sem*wait with conn_dev_sem*wait to simplify code logic 2026-01-02 07:48:06 -03:00
can_setsockopt.c net/can: replace net_lock with conn_lock and conn_lock_dev 2025-12-29 09:42:18 +08:00
can_sockif.c net/devif_callback: change flags type from uint16_t to uint32_t 2026-01-02 00:04:16 +08:00
CMakeLists.txt net/can: can protocol uses a separate buffer to cache can data 2025-12-25 08:56:12 -03:00
Kconfig net/can: fix poll setup to properly find and use free pollfd slots 2025-12-31 02:35:42 +08:00
Make.defs net/can: can protocol uses a separate buffer to cache can data 2025-12-25 08:56:12 -03:00