linux/drivers/net/can/dev
Maxime Jayat 8a72a4689a can: netlink: Fix TDCO calculation using the old data bittiming
commit 2aa0a5e65e upstream.

The TDCO calculation was done using the currently applied data bittiming,
instead of the newly computed data bittiming, which means that the TDCO
had an invalid value unless setting the same data bittiming twice.

Fixes: d99755f71a ("can: netlink: add interface for CAN-FD Transmitter Delay Compensation (TDC)")
Signed-off-by: Maxime Jayat <maxime.jayat@mobile-devices.fr>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/40579c18-63c0-43a4-8d4c-f3a6c1c0b417@munic.io
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-02-23 09:12:47 +01:00
..
bittiming.c can: bittiming: move bittiming calculation functions to calc_bittiming.c 2022-06-11 17:11:01 +02:00
calc_bittiming.c can: bittiming: move bittiming calculation functions to calc_bittiming.c 2022-06-11 17:11:01 +02:00
dev.c can: dev: can_restart(): fix race condition between controller restart and netif_carrier_on() 2023-11-20 11:51:53 +01:00
length.c can: length: can_fd_len2dlc(): make legnth calculation readable again 2021-01-27 10:01:46 +01:00
Makefile can: Kconfig: add CONFIG_CAN_RX_OFFLOAD 2022-06-11 17:11:02 +02:00
netlink.c can: netlink: Fix TDCO calculation using the old data bittiming 2024-02-23 09:12:47 +01:00
rx-offload.c can: skb: add skb CAN frame data length helpers 2022-09-15 09:08:08 +02:00
skb.c can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds 2023-11-20 11:51:53 +01:00