提交 fa202592 编写于 作者: R Rémi Denis-Courmont 提交者: David S. Miller

f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback

Network device TX is never run in IRQ context, and skb is freed outside
of the IRQ-disabling spin lock. So checking for IRQ was a waste of time
here.
Signed-off-by: NRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bbd5898d
......@@ -255,7 +255,7 @@ static int pn_net_xmit(struct sk_buff *skb, struct net_device *dev)
spin_unlock_irqrestore(&port->lock, flags);
out:
if (unlikely(skb)) {
dev_kfree_skb_any(skb);
dev_kfree_skb(skb);
dev->stats.tx_dropped++;
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册