]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/tcp_ipv4.c
Merge branch 'for-linus' of git://git.infradead.org/ubi-2.6
[linux-2.6-omap-h63xx.git] / net / ipv4 / tcp_ipv4.c
index a091a99ad263d7eaa3519dfccfd25d5891c60272..5a3e7f839fc52f838122a88a40209566ce2e3ab7 100644 (file)
@@ -1638,8 +1638,7 @@ int tcp_v4_rcv(struct sk_buff *skb)
         * Packet length and doff are validated by header prediction,
         * provided case of th->doff==0 is eliminated.
         * So, we defer the checks. */
-       if ((skb->ip_summed != CHECKSUM_UNNECESSARY &&
-            tcp_v4_checksum_init(skb)))
+       if (!skb_csum_unnecessary(skb) && tcp_v4_checksum_init(skb))
                goto bad_packet;
 
        th = tcp_hdr(skb);