linux-brain/drivers/net/can/usb
Stefan Mätje 16b281a70a can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters
commit 044012b52029204900af9e4230263418427f4ba4 upstream.

This patch fixes the interchanged fetch of the CAN RX and TX error
counters from the ESD_EV_CAN_ERROR_EXT message. The RX error counter
is really in struct rx_msg::data[2] and the TX error counter is in
struct rx_msg::data[3].

Fixes: 96d8e90382 ("can: Add driver for esd CAN-USB/2 device")
Link: https://lore.kernel.org/r/20210825215227.4947-2-stefan.maetje@esd.eu
Cc: stable@vger.kernel.org
Signed-off-by: Stefan Mätje <stefan.maetje@esd.eu>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-03 10:08:13 +02:00
..
kvaser_usb can: kvaser_usb: kvaser_usb_hydra: Fix KCAN bittiming limits 2020-11-24 13:29:17 +01:00
peak_usb drivers: net: fix memory leak in peak_usb_create_dev 2021-04-14 08:24:18 +02:00
Kconfig drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
Makefile can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c 2018-07-27 10:40:19 +02:00
ems_usb.c can: ems_usb: fix memory leak 2021-08-04 12:27:38 +02:00
esd_usb2.c can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters 2021-09-03 10:08:13 +02:00
gs_usb.c can: gs_usb: fix endianess problem with candleLight firmware 2020-12-02 08:49:53 +01:00
mcba_usb.c can: mcba_usb_start(): add missing urb->transfer_dma initialization 2021-08-04 12:27:38 +02:00
ucan.c can: ucan: fix non-atomic allocation in completion handler 2019-12-13 08:43:16 +01:00
usb_8dev.c can: usb_8dev: fix memory leak 2021-08-04 12:27:38 +02:00