summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/apple/macmace.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/apple/macmace.c')
-rw-r--r--drivers/net/ethernet/apple/macmace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/apple/macmace.c b/drivers/net/ethernet/apple/macmace.c
index 857df9c45f04..f17a160dbff2 100644
--- a/drivers/net/ethernet/apple/macmace.c
+++ b/drivers/net/ethernet/apple/macmace.c
@@ -663,7 +663,7 @@ static void mace_dma_rx_frame(struct net_device *dev, struct mace_frame *mf)
return;
}
skb_reserve(skb, 2);
- memcpy(skb_put(skb, frame_length), mf->data, frame_length);
+ skb_put_data(skb, mf->data, frame_length);
skb->protocol = eth_type_trans(skb, dev);
netif_rx(skb);