Skip to content

Commit 0e79ef2

Browse files
Jimmy Assarssongregkh
authored andcommitted
can: kvaser_usb: Increase correct stats counter in kvaser_usb_rx_can_msg()
commit 6ee0086 upstream. Increase rx_dropped, if alloc_can_skb() fails, not tx_dropped. Signed-off-by: Jimmy Assarsson <extja@kvaser.com> Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f94eef3 commit 0e79ef2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/can/usb/kvaser_usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ static void kvaser_usb_rx_can_msg(const struct kvaser_usb *dev,
11791179

11801180
skb = alloc_can_skb(priv->netdev, &cf);
11811181
if (!skb) {
1182-
stats->tx_dropped++;
1182+
stats->rx_dropped++;
11831183
return;
11841184
}
11851185

0 commit comments

Comments
 (0)