diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2007-03-31 10:55:45 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:28:30 -0400 |
commit | 1a4e2d093fd5f3eaf8cffc04a1b803f8b0ddef6d (patch) | |
tree | 2743aa6311b434840e82b6107013c34605534816 /net/netrom | |
parent | 27d7ff46a3498d3debc6ba68fb8014c702b81170 (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/netrom')
-rw-r--r-- | net/netrom/nr_in.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/netrom/nr_in.c b/net/netrom/nr_in.c index e6dc749e14be..68176483617f 100644 --- a/net/netrom/nr_in.c +++ b/net/netrom/nr_in.c | |||
@@ -54,7 +54,9 @@ static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) | |||
54 | skb_reset_transport_header(skbn); | 54 | skb_reset_transport_header(skbn); |
55 | 55 | ||
56 | while ((skbo = skb_dequeue(&nr->frag_queue)) != NULL) { | 56 | while ((skbo = skb_dequeue(&nr->frag_queue)) != NULL) { |
57 | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); | 57 | skb_copy_from_linear_data(skbo, |
58 | skb_put(skbn, skbo->len), | ||
59 | skbo->len); | ||
58 | kfree_skb(skbo); | 60 | kfree_skb(skbo); |
59 | } | 61 | } |
60 | 62 | ||