diff options
Diffstat (limited to 'drivers/net/ethernet/apple/macmace.c')
-rw-r--r-- | drivers/net/ethernet/apple/macmace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/apple/macmace.c b/drivers/net/ethernet/apple/macmace.c index 7cf81bbffe0e..ab7ff8645ab1 100644 --- a/drivers/net/ethernet/apple/macmace.c +++ b/drivers/net/ethernet/apple/macmace.c | |||
@@ -661,7 +661,7 @@ static void mace_dma_rx_frame(struct net_device *dev, struct mace_frame *mf) | |||
661 | } else { | 661 | } else { |
662 | unsigned int frame_length = mf->rcvcnt + ((frame_status & 0x0F) << 8 ); | 662 | unsigned int frame_length = mf->rcvcnt + ((frame_status & 0x0F) << 8 ); |
663 | 663 | ||
664 | skb = dev_alloc_skb(frame_length + 2); | 664 | skb = netdev_alloc_skb(dev, frame_length + 2); |
665 | if (!skb) { | 665 | if (!skb) { |
666 | dev->stats.rx_dropped++; | 666 | dev->stats.rx_dropped++; |
667 | return; | 667 | return; |