]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:22:47 +0000 (10:22 +0200)
commitdbbf1899c6ffc8d69f17f5f2ebd4b1ce84425547
treed267eafa010ef3f399f62c6d2d5f773109e8271a
parent1579b0f1e7bd539e67fbb4ceaa5bb5d1e9b624ce
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: 96d8e90382dc ("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>
drivers/net/can/usb/esd_usb2.c