Patch "can: esd_usb2: Fix can_dlc value for received RTR, frames" has been added to the 4.13-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
can: esd_usb2: Fix can_dlc value for received RTR, frames
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
can-esd_usb2-fix-can_dlc-value-for-received-rtr-frames.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
72d92e865d1560723e1957ee3f393688c49ca5bfMon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20M=C3=A4tje?= <[email protected]>
Date: Wed, 18 Oct 2017 13:25:17 +0200
Subject: can: esd_usb2: Fix can_dlc value for received RTR, frames
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Stefan Mätje <[email protected]>
commit 72d92e865d1560723e1957ee3f393688c49ca5bf upstream.
The dlc member of the struct rx_msg contains also the ESD_RTR flag to mark received RTR frames. Without the fix the can_dlc value for received RTR frames would always be set to 8 by get_can_dlc() instead of the received value.
--- drivers/net/can/usb/esd_usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/usb/esd_usb2.c +1 -1
@@ -333,7 +333,7 @@ static void esd_usb2_rx_can_msg(struct e } cf->can_id = id &ESD_IDMASK ; - cf->can_dlc =get_can_dlc (msg->msg.rx.dlc); + cf->can_dlc =get_can_dlc (msg->msg.rx.dlc & ~ESD_RTR );if (id &ESD_EXTID ) cf->can_id |=CAN_EFF_FLAG ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/can-esd_usb2-fix-can_dlc-value-for-received-rtr-frames.patch