diff options
Diffstat (limited to 'drivers/net/ethernet/dec/ewrk3.c')
-rw-r--r-- | drivers/net/ethernet/dec/ewrk3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dec/ewrk3.c b/drivers/net/ethernet/dec/ewrk3.c index f9df5e4d034..1879f84a25a 100644 --- a/drivers/net/ethernet/dec/ewrk3.c +++ b/drivers/net/ethernet/dec/ewrk3.c | |||
@@ -986,8 +986,10 @@ static int ewrk3_rx(struct net_device *dev) | |||
986 | dev->stats.rx_fifo_errors++; | 986 | dev->stats.rx_fifo_errors++; |
987 | } else { | 987 | } else { |
988 | struct sk_buff *skb; | 988 | struct sk_buff *skb; |
989 | skb = netdev_alloc_skb(dev, | ||
990 | pkt_len + 2); | ||
989 | 991 | ||
990 | if ((skb = dev_alloc_skb(pkt_len + 2)) != NULL) { | 992 | if (skb != NULL) { |
991 | unsigned char *p; | 993 | unsigned char *p; |
992 | skb_reserve(skb, 2); /* Align to 16 bytes */ | 994 | skb_reserve(skb, 2); /* Align to 16 bytes */ |
993 | p = skb_put(skb, pkt_len); | 995 | p = skb_put(skb, pkt_len); |