Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[linux-2.6-microblaze.git] / drivers / tty / synclink_gt.c
index cc047de..529c6e3 100644 (file)
@@ -1755,7 +1755,7 @@ static void hdlcdev_rx(struct slgt_info *info, char *buf, int size)
                return;
        }
 
-       memcpy(skb_put(skb, size), buf, size);
+       skb_put_data(skb, buf, size);
 
        skb->protocol = hdlc_type_trans(skb, dev);