can: dev: avoid calling kfree_skb() from interrupt context
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / net / can / dev.c
index fc59bc6..cc11f7f 100644 (file)
@@ -384,7 +384,7 @@ void can_free_echo_skb(struct net_device *dev, unsigned int idx)
        BUG_ON(idx >= priv->echo_skb_max);
 
        if (priv->echo_skb[idx]) {
-               kfree_skb(priv->echo_skb[idx]);
+               dev_kfree_skb_any(priv->echo_skb[idx]);
                priv->echo_skb[idx] = NULL;
        }
 }