]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] SPARC64: Fix missing fold at end of checksums.
authorDavid Miller <davem@davemloft.net>
Mon, 5 Jun 2006 18:27:10 +0000 (11:27 -0700)
committerChris Wright <chrisw@sous-sol.org>
Thu, 22 Jun 2006 19:16:11 +0000 (12:16 -0700)
commit9d8e2ed7c51a756c8b6534af4fb82c406cfe0741
tree0f51d44b82747c13f556fd02f27ac0cb8f39564c
parentaf948395f08691edd731bac85c1f4c334bd312ec
[PATCH] SPARC64: Fix missing fold at end of checksums.

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: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc64/lib/checksum.S
arch/sparc64/lib/csum_copy.S