aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/i825xx/znet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/i825xx/znet.c')
-rw-r--r--drivers/net/ethernet/i825xx/znet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/i825xx/znet.c b/drivers/net/ethernet/i825xx/znet.c
index 962b4c421f3f..a43649735a04 100644
--- a/drivers/net/ethernet/i825xx/znet.c
+++ b/drivers/net/ethernet/i825xx/znet.c
@@ -762,7 +762,7 @@ static void znet_rx(struct net_device *dev)
762 /* Malloc up new buffer. */ 762 /* Malloc up new buffer. */
763 struct sk_buff *skb; 763 struct sk_buff *skb;
764 764
765 skb = dev_alloc_skb(pkt_len); 765 skb = netdev_alloc_skb(dev, pkt_len);
766 if (skb == NULL) { 766 if (skb == NULL) {
767 if (znet_debug) 767 if (znet_debug)
768 printk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name); 768 printk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);