mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 01:01:52 +00:00
sis900: Call dev_kfree_skb_any instead of dev_kfree_skb.
Replace dev_kfree_skb with dev_kfree_skb_any in functions that can be called in hard irq and other contexts. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
9ebeac55b9
commit
828f56f60f
@ -1614,7 +1614,7 @@ sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev)
|
||||
skb->data, skb->len, PCI_DMA_TODEVICE);
|
||||
if (unlikely(pci_dma_mapping_error(sis_priv->pci_dev,
|
||||
sis_priv->tx_ring[entry].bufptr))) {
|
||||
dev_kfree_skb(skb);
|
||||
dev_kfree_skb_any(skb);
|
||||
sis_priv->tx_skbuff[entry] = NULL;
|
||||
net_dev->stats.tx_dropped++;
|
||||
spin_unlock_irqrestore(&sis_priv->lock, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user