sis900: Call dev_kfree_skb_any instead of dev_kfree_skb.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 16 Mar 2014 01:03:36 +0000 (18:03 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 25 Mar 2014 04:19:09 +0000 (21:19 -0700)
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>
drivers/net/ethernet/sis/sis900.c

index ff57a46388eefed67c81b70dc67e8ddd6a698826..6072f093e6b46618c0724f6a7ed1436d7f3c50f8 100644 (file)
@@ -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);