• David S. Miller's avatar
    [SPARC64]: Fix missing fold at end of checksums. · ae5de0ff
    David S. Miller authored
    Both csum_partial() and the csum_partial_copy*() family of routines
    forget to do a final fold on the computed checksum value on sparc64.
    So do the standard Sparc "add + set condition codes, add carry"
    sequence, then make sure the high 32-bits of the return value are
    clear.
    
    Based upon some excellent detective work and debugging done by
    Richard Braun and Samuel Thibault.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ae5de0ff
checksum.S 3.77 KB