diff options
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/netfilter/dn_rtmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/netfilter/dn_rtmsg.c b/net/decnet/netfilter/dn_rtmsg.c index 9e8256a2361e..2ee47bab6938 100644 --- a/net/decnet/netfilter/dn_rtmsg.c +++ b/net/decnet/netfilter/dn_rtmsg.c | |||
@@ -48,7 +48,7 @@ static struct sk_buff *dnrmg_build_message(struct sk_buff *rt_skb, int *errp) | |||
48 | rtm = (struct nf_dn_rtmsg *)NLMSG_DATA(nlh); | 48 | rtm = (struct nf_dn_rtmsg *)NLMSG_DATA(nlh); |
49 | rtm->nfdn_ifindex = rt_skb->dev->ifindex; | 49 | rtm->nfdn_ifindex = rt_skb->dev->ifindex; |
50 | ptr = NFDN_RTMSG(rtm); | 50 | ptr = NFDN_RTMSG(rtm); |
51 | memcpy(ptr, rt_skb->data, rt_skb->len); | 51 | skb_copy_from_linear_data(rt_skb, ptr, rt_skb->len); |
52 | nlh->nlmsg_len = skb->tail - old_tail; | 52 | nlh->nlmsg_len = skb->tail - old_tail; |
53 | return skb; | 53 | return skb; |
54 | 54 | ||