From: Stefan Mätje Date: Wed, 18 Oct 2017 11:25:17 +0000 (+0200) Subject: can: esd_usb2: Fix can_dlc value for received RTR, frames X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64eb21a3bd16b4627823947ac786dcb00c0f34b1;p=pandora-kernel.git can: esd_usb2: Fix can_dlc value for received RTR, frames 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. Fixes: 96d8e90382dc ("can: Add driver for esd CAN-USB/2 device") Signed-off-by: Stefan Mätje Signed-off-by: Marc Kleine-Budde Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed