walnux/net/can
Javier Casas 9c04b9ed4a net/can: Fix NULL dereference for I/O Block
In a recent patch the socketcan timestamp generation was moved
to add it also when there is an active reader (previously the timestamp
was only added before storing the CAN frame in the read-ahead list).

It was working fine but I realized that the can_callback function is
also called when sending frames. In this case, the IO block is not allocated
yet and the code breaks.

This PR is to only generate the timestamp if the IO block is not NULL
(reading path) and skip it when it is NULL (sending path)

Signed-off-by: Javier Casas <javiercasas@geotab.com>
2025-03-13 09:37:55 +01:00
..
can.h net/can: Save simple options to socket_conn_s 2024-10-13 11:24:31 +08:00
can_callback.c net/can: Fix NULL dereference for I/O Block 2025-03-13 09:37:55 +01: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