[SK_BUFF]: Some more conversions to skb_copy_from_linear_data
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:

committed by
David S. Miller

parent
27d7ff46a3
commit
1a4e2d093f
@@ -48,7 +48,7 @@ static struct sk_buff *dnrmg_build_message(struct sk_buff *rt_skb, int *errp)
|
||||
rtm = (struct nf_dn_rtmsg *)NLMSG_DATA(nlh);
|
||||
rtm->nfdn_ifindex = rt_skb->dev->ifindex;
|
||||
ptr = NFDN_RTMSG(rtm);
|
||||
memcpy(ptr, rt_skb->data, rt_skb->len);
|
||||
skb_copy_from_linear_data(rt_skb, ptr, rt_skb->len);
|
||||
nlh->nlmsg_len = skb->tail - old_tail;
|
||||
return skb;
|
||||
|
||||
|
Reference in New Issue
Block a user