aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/dnet.c')
-rw-r--r--drivers/net/ethernet/dnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index fe48cb7dde21..8536e376555a 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -421,7 +421,7 @@ static int dnet_poll(struct napi_struct *napi, int budget)
421 printk(KERN_ERR "%s packet receive error %x\n", 421 printk(KERN_ERR "%s packet receive error %x\n",
422 __func__, cmd_word); 422 __func__, cmd_word);
423 423
424 skb = dev_alloc_skb(pkt_len + 5); 424 skb = netdev_alloc_skb(dev, pkt_len + 5);
425 if (skb != NULL) { 425 if (skb != NULL) {
426 /* Align IP on 16 byte boundaries */ 426 /* Align IP on 16 byte boundaries */
427 skb_reserve(skb, 2); 427 skb_reserve(skb, 2);