Commit eee79d4f authored by Jeff Garzik's avatar Jeff Garzik

Use dev_kfree_skb_any not dev_kfree_skb in tg3 net driver

function tg3_free_rings.

Spotted by DaveM.
parent 40346461
...@@ -2729,7 +2729,7 @@ static void tg3_free_rings(struct tg3 *tp) ...@@ -2729,7 +2729,7 @@ static void tg3_free_rings(struct tg3 *tp)
pci_unmap_addr(rxp, mapping), pci_unmap_addr(rxp, mapping),
RX_PKT_BUF_SZ - tp->rx_offset, RX_PKT_BUF_SZ - tp->rx_offset,
PCI_DMA_FROMDEVICE); PCI_DMA_FROMDEVICE);
dev_kfree_skb(rxp->skb); dev_kfree_skb_any(rxp->skb);
rxp->skb = NULL; rxp->skb = NULL;
} }
#if TG3_MINI_RING_WORKS #if TG3_MINI_RING_WORKS
...@@ -2742,7 +2742,7 @@ static void tg3_free_rings(struct tg3 *tp) ...@@ -2742,7 +2742,7 @@ static void tg3_free_rings(struct tg3 *tp)
pci_unmap_addr(rxp, mapping), pci_unmap_addr(rxp, mapping),
RX_MINI_PKT_BUF_SZ - tp->rx_offset, RX_MINI_PKT_BUF_SZ - tp->rx_offset,
PCI_DMA_FROMDEVICE); PCI_DMA_FROMDEVICE);
dev_kfree_skb(rxp->skb); dev_kfree_skb_any(rxp->skb);
rxp->skb = NULL; rxp->skb = NULL;
} }
#endif #endif
...@@ -2755,7 +2755,7 @@ static void tg3_free_rings(struct tg3 *tp) ...@@ -2755,7 +2755,7 @@ static void tg3_free_rings(struct tg3 *tp)
pci_unmap_addr(rxp, mapping), pci_unmap_addr(rxp, mapping),
RX_JUMBO_PKT_BUF_SZ - tp->rx_offset, RX_JUMBO_PKT_BUF_SZ - tp->rx_offset,
PCI_DMA_FROMDEVICE); PCI_DMA_FROMDEVICE);
dev_kfree_skb(rxp->skb); dev_kfree_skb_any(rxp->skb);
rxp->skb = NULL; rxp->skb = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment