]> git.baikalelectronics.ru Git - kernel.git/commit
can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX...
authorStefan Mätje <stefan.maetje@esd.eu>
Wed, 25 Aug 2021 21:52:27 +0000 (23:52 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 26 Aug 2021 06:37:13 +0000 (08:37 +0200)
commit5373432c91f19b6c5172c4a2225f40254b3445dd
tree8c3793c008f835e3bddbe9c8190af54d69c50e0a
parentc25e26f7394a47e26dc455d57c97926b4dc5170e
can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters

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: 37ca9589408a ("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>
drivers/net/can/usb/esd_usb2.c