]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - net/ipv4/ip_output.c
net: Fix possible wrong checksum generation.
[~shefty/rdma-dev.git] / net / ipv4 / ip_output.c
index 3e98ed2bff55d7328aae7209ecbda4f78445c87a..5e12dca7b3dd4914af0f1f0e333c59f6547968f8 100644 (file)
@@ -598,6 +598,7 @@ slow_path:
        /* for offloaded checksums cleanup checksum before fragmentation */
        if ((skb->ip_summed == CHECKSUM_PARTIAL) && skb_checksum_help(skb))
                goto fail;
+       iph = ip_hdr(skb);
 
        left = skb->len - hlen;         /* Space per frame */
        ptr = hlen;             /* Where to start from */