aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2007-03-31 10:55:45 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:28:30 -0400
commit1a4e2d093fd5f3eaf8cffc04a1b803f8b0ddef6d (patch)
tree2743aa6311b434840e82b6107013c34605534816 /net/decnet
parent27d7ff46a3498d3debc6ba68fb8014c702b81170 (diff)
[SK_BUFF]: Some more conversions to skb_copy_from_linear_data
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Diffstat (limited to 'net/decnet')
-rw-r--r--net/decnet/netfilter/dn_rtmsg.c2
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