summaryrefslogtreecommitdiff
path: root/drivers/net/can/usb
diff options
context:
space:
mode:
authorJimmy Assarsson <extja@kvaser.com>2018-04-20 15:38:46 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2018-05-08 11:41:38 +0300
commit6ee00865ffe4e8c8ba4a68d26db53c7ec09bbb89 (patch)
treed85f3e9348c585aadde20422449e0cb1dac80840 /drivers/net/can/usb
parent9a62dcf486c10daf5366f29df1c799f69b1510f9 (diff)
downloadlinux-6ee00865ffe4e8c8ba4a68d26db53c7ec09bbb89.tar.xz
can: kvaser_usb: Increase correct stats counter in kvaser_usb_rx_can_msg()
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>
Diffstat (limited to 'drivers/net/can/usb')
-rw-r--r--drivers/net/can/usb/kvaser_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/usb/kvaser_usb.c b/drivers/net/can/usb/kvaser_usb.c
index 63587b8e6825..daed57d3d209 100644
--- a/drivers/net/can/usb/kvaser_usb.c
+++ b/drivers/net/can/usb/kvaser_usb.c
@@ -1179,7 +1179,7 @@ static void kvaser_usb_rx_can_msg(const struct kvaser_usb *dev,
skb = alloc_can_skb(priv->netdev, &cf);
if (!skb) {
- stats->tx_dropped++;
+ stats->rx_dropped++;
return;
}