Messages in this thread Patch in this message | | | Date | Fri, 11 Feb 2000 17:45:50 +0200 | From | Oleg Drokin <> | Subject | kfree_skb fixes for rtl8139 driver in 2.3.43 |
| |
Hello!
Here is the diff against 2.3.43
--- rtl8139.c.orig Fri Feb 11 17:43:51 2000 +++ rtl8139.c Fri Feb 11 17:45:01 2000 @@ -96,11 +96,6 @@ #else #define PCI_SUPPORT_VER2 #endif -#if LINUX_VERSION_CODE < 0x20159 -#define dev_free_skb(skb) dev_kfree_skb(skb, FREE_WRITE); -#else -#define dev_free_skb(skb) dev_kfree_skb(skb); -#endif /* The I/O extent. */ #define RTL8129_TOTAL_SIZE 0x80 @@ -1096,7 +1091,7 @@ } /* Free the original skb. */ - dev_free_skb(tp->tx_info[entry].skb); + dev_kfree_skb_irq(tp->tx_info[entry].skb); tp->tx_info[entry].skb = NULL; if (tp->tx_full) { /* The ring is no longer full, wake the queue. */ @@ -1322,7 +1317,7 @@ if (skb) { if (mapping) pci_unmap_single(tp->pdev, mapping, skb->len); - dev_free_skb(skb); + dev_kfree_skb(skb); } tp->tx_info[i].skb = NULL; tp->tx_info[i].mapping = 0; Bye, Oleg
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |