diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c
index 3486704c8a95736fe3b917ddbe85da6c9639dc9c..8b1ae023cb218f2db5bd3f58a28f6e91ccfa5104 100644
--- a/drivers/net/can/dev.c
+++ b/drivers/net/can/dev.c
@@ -592,11 +592,11 @@ static void can_restart(struct net_device *dev)
 
 	cf->can_id |= CAN_ERR_RESTARTED;
 
-	netif_rx_ni(skb);
-
 	stats->rx_packets++;
 	stats->rx_bytes += cf->len;
 
+	netif_rx_ni(skb);
+
 restart:
 	netdev_dbg(dev, "restarted\n");
 	priv->can_stats.restarts++;