projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a62dcf
)
can: kvaser_usb: Increase correct stats counter in kvaser_usb_rx_can_msg()
author
Jimmy Assarsson
<extja@kvaser.com>
Fri, 20 Apr 2018 12:38:46 +0000
(14:38 +0200)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 8 May 2018 08:41:38 +0000
(10:41 +0200)
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>
drivers/net/can/usb/kvaser_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/usb/kvaser_usb.c
b/drivers/net/can/usb/kvaser_usb.c
index
63587b8
..
daed57d
100644
(file)
--- 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->
t
x_dropped++;
+ stats->
r
x_dropped++;
return;
}