X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fnetrom%2Fnr_in.c;h=68176483617f36c6c83df1bf5978753c4ab2755f;hb=54160904260fa764ba6e2dc738770be30fdf9553;hp=a7d88b5ad756a85731d97feec43a58193129367c;hpb=5367f2d67c7d0bf1faae90e6e7b4e2ac3c9b5e0f;p=linux-2.6-omap-h63xx.git diff --git a/net/netrom/nr_in.c b/net/netrom/nr_in.c index a7d88b5ad75..68176483617 100644 --- a/net/netrom/nr_in.c +++ b/net/netrom/nr_in.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -52,10 +51,12 @@ static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) if ((skbn = alloc_skb(nr->fraglen, GFP_ATOMIC)) == NULL) return 1; - skbn->h.raw = skbn->data; + skb_reset_transport_header(skbn); while ((skbo = skb_dequeue(&nr->frag_queue)) != NULL) { - memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); + skb_copy_from_linear_data(skbo, + skb_put(skbn, skbo->len), + skbo->len); kfree_skb(skbo); }