Skip to content
Commit 200f5c49 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

can: dev: __can_get_echo_skb(): replace struct can_frame by canfd_frame to access frame length



This patch replaces the use of "struct can_frame::can_dlc" by "struct
canfd_frame::len" to access the frame's length. As it is ensured that
both structures have a compatible memory layout for this member this is
no functional change. Futher, this compatibility is documented in a
comment.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent a4310fa2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment