OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc56b7
)
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
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 16 May 2018 08:06:51 +0000
(10:06 +0200)
commit
6ee00865ffe4e8c8ba4a68d26db53c7ec09bbb89
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>
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
db1855b
..
59f891b
100644
(file)
--- a/
drivers/net/can/usb/kvaser_usb.c
+++ b/
drivers/net/can/usb/kvaser_usb.c
@@
-1175,7
+1175,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;
}