diff options
Diffstat (limited to 'drivers/net/ethernet/i825xx/3c527.c')
-rw-r--r-- | drivers/net/ethernet/i825xx/3c527.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/i825xx/3c527.c b/drivers/net/ethernet/i825xx/3c527.c index 474b5e71a53a..ef43f3e951c5 100644 --- a/drivers/net/ethernet/i825xx/3c527.c +++ b/drivers/net/ethernet/i825xx/3c527.c | |||
@@ -1169,7 +1169,7 @@ static void mc32_rx_ring(struct net_device *dev) | |||
1169 | /* Try to save time by avoiding a copy on big frames */ | 1169 | /* Try to save time by avoiding a copy on big frames */ |
1170 | 1170 | ||
1171 | if ((length > RX_COPYBREAK) && | 1171 | if ((length > RX_COPYBREAK) && |
1172 | ((newskb=dev_alloc_skb(1532)) != NULL)) | 1172 | ((newskb = netdev_alloc_skb(dev, 1532)) != NULL)) |
1173 | { | 1173 | { |
1174 | skb=lp->rx_ring[rx_ring_tail].skb; | 1174 | skb=lp->rx_ring[rx_ring_tail].skb; |
1175 | skb_put(skb, length); | 1175 | skb_put(skb, length); |
@@ -1180,7 +1180,7 @@ static void mc32_rx_ring(struct net_device *dev) | |||
1180 | } | 1180 | } |
1181 | else | 1181 | else |
1182 | { | 1182 | { |
1183 | skb=dev_alloc_skb(length+2); | 1183 | skb = netdev_alloc_skb(dev, length + 2); |
1184 | 1184 | ||
1185 | if(skb==NULL) { | 1185 | if(skb==NULL) { |
1186 | dev->stats.rx_dropped++; | 1186 | dev->stats.rx_dropped++; |