mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 22:00:21 +00:00
can_datahandler returns an unsigned value that represent the number of bytes actually bufffered, but the call to iob_tryadd_queue returns a negative value when it fails so that value can't be used as can_datahandler return value because it is interpreted as unsigned so a big number is wrongly returned when iob_tryadd_queue fails. The fix is just setting the return value to zero when iob_tryadd_queue fails, reflecting the actual meaning that no bytes have been buffered. |
||
|---|---|---|
| .. | ||
| can.h | ||
| 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_setsockopt.c | ||
| can_sockif.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||