walnux/net/can
Javier Casas 52dbfda355 bug fix: can_datahandler wrong return value
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.
2025-01-30 11:37:29 -03:00
..
can.h net/can: Save simple options to socket_conn_s 2024-10-13 11:24:31 +08:00
can_callback.c bug fix: can_datahandler wrong return value 2025-01-30 11:37:29 -03:00
can_conn.c net/bufpool: Call init automatically on alloc 2025-01-07 22:00:21 +08:00
can_getsockopt.c net/can: Save simple options to socket_conn_s 2024-10-13 11:24:31 +08:00
can_input.c net/can/: add statistics for recv, sent and drop 2025-01-30 11:37:29 -03: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/can/: add statistics for recv, sent and drop 2025-01-30 11:37:29 -03:00
can_sendmsg.c net/can/: add statistics for recv, sent and drop 2025-01-30 11:37:29 -03:00
can_setsockopt.c net/can: Save simple options to socket_conn_s 2024-10-13 11:24:31 +08:00
can_sockif.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00