summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/gl620a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb/gl620a.c')
-rw-r--r--drivers/net/usb/gl620a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/usb/gl620a.c b/drivers/net/usb/gl620a.c
index 1cc24e6f23e2..29276e54bb8b 100644
--- a/drivers/net/usb/gl620a.c
+++ b/drivers/net/usb/gl620a.c
@@ -121,8 +121,7 @@ static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
if (gl_skb) {
// copy the packet data to the new skb
- memcpy(skb_put(gl_skb, size),
- packet->packet_data, size);
+ skb_put_data(gl_skb, packet->packet_data, size);
usbnet_skb_return(dev, gl_skb);
}