]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/synclinkmp.c
networking: introduce and use skb_put_data()
[karo-tx-linux.git] / drivers / tty / synclinkmp.c
index 51e8846cd68fce28f0544c2f16424560dfaf787b..9b4fb0251c1ab81552c3ac5a3b32be294d06051b 100644 (file)
@@ -1874,7 +1874,7 @@ static void hdlcdev_rx(SLMP_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);