]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/ipcomp.c
[IPV4] IP_GRE: Unify code path to get hash array index.
[linux-2.6-omap-h63xx.git] / net / ipv4 / ipcomp.c
index ba348b1e5f84469999f8d3de8eebe74cbd7fcc71..ab86137c71d2109182028a649d484371a346e7c1 100644 (file)
@@ -66,7 +66,7 @@ static int ipcomp_decompress(struct xfrm_state *x, struct sk_buff *skb)
 
        skb->truesize += dlen - plen;
        __skb_put(skb, dlen - plen);
-       memcpy(skb->data, scratch, dlen);
+       skb_copy_to_linear_data(skb, scratch, dlen);
 out:
        put_cpu();
        return err;