Commit 535b427e authored by Jimmy Assarsson's avatar Jimmy Assarsson Committed by Stefan Bader

can: kvaser_usb: Increase correct stats counter in kvaser_usb_rx_can_msg()

BugLink: http://bugs.launchpad.net/bugs/1774173

commit 6ee00865 upstream.

Increase rx_dropped, if alloc_can_skb() fails, not tx_dropped.
Signed-off-by: default avatarJimmy Assarsson <extja@kvaser.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 15b63467
......@@ -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->tx_dropped++;
stats->rx_dropped++;
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment