X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fnetrom%2Fnr_in.c;h=68176483617f36c6c83df1bf5978753c4ab2755f;hb=3be25f49b9d6a97eae9bcb96d3292072b7658bd8;hp=a7d88b5ad756a85731d97feec43a58193129367c;hpb=f61ea1b0c825a20a1826bb43a226387091934586;p=karo-tx-linux.git diff --git a/net/netrom/nr_in.c b/net/netrom/nr_in.c index a7d88b5ad756..68176483617f 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); }