Message ID | 20210826064456.1427513-2-mkl@pengutronix.de |
---|---|
State | Accepted |
Commit | 044012b52029204900af9e4230263418427f4ba4 |
Headers | show |
Series | [net] can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters | expand |
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Thu, 26 Aug 2021 08:44:56 +0200 you wrote: > From: Stefan Mätje <stefan.maetje@esd.eu> > > 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]. > > [...] Here is the summary with links: - [net] can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters https://git.kernel.org/netdev/net/c/044012b52029 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/can/usb/esd_usb2.c b/drivers/net/can/usb/esd_usb2.c index 66fa8b07c2e6..95ae740fc311 100644 --- a/drivers/net/can/usb/esd_usb2.c +++ b/drivers/net/can/usb/esd_usb2.c @@ -224,8 +224,8 @@ static void esd_usb2_rx_event(struct esd_usb2_net_priv *priv, if (id == ESD_EV_CAN_ERROR_EXT) { u8 state = msg->msg.rx.data[0]; u8 ecc = msg->msg.rx.data[1]; - u8 txerr = msg->msg.rx.data[2]; - u8 rxerr = msg->msg.rx.data[3]; + u8 rxerr = msg->msg.rx.data[2]; + u8 txerr = msg->msg.rx.data[3]; skb = alloc_can_err_skb(priv->netdev, &cf); if (skb == NULL) {