networking: introduce and use skb_put_data()
[linux-block.git] / net / netlink / af_netlink.c
index 7586d446d7dcafc5c44b43190398840b68107d1f..bd24a975fd49987ead6aebcc44f3a02c81ba5397 100644 (file)
@@ -170,7 +170,7 @@ static struct sk_buff *netlink_to_full_skb(const struct sk_buff *skb,
        NETLINK_CB(new).dst_group = NETLINK_CB(skb).dst_group;
        NETLINK_CB(new).creds = NETLINK_CB(skb).creds;
 
-       memcpy(skb_put(new, len), skb->data, len);
+       skb_put_data(new, skb->data, len);
        return new;
 }