Ignore:
Timestamp:
Apr 16, 2017, 10:20:39 AM (2 months ago)
Author:
brainslayer
Message:

backport udp checksum fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/adm5120/linux-2.6.23/net/ipv4/udp.c

    r10172 r31865  
    819819        unsigned int ulen, copied;
    820820        int err;
     821        bool checksum_valid = false;
    821822        int is_udplite = IS_UDPLITE(sk);
    822823
     
    849850
    850851        if (copied < ulen || UDP_SKB_CB(skb)->partial_cov) {
    851                 if (udp_lib_checksum_complete(skb))
     852                checksum_valid = !udp_lib_checksum_complete(skb);
     853                if (!checksum_valid)
    852854                        goto csum_copy_err;
    853855        }
Note: See TracChangeset for help on using the changeset viewer.