aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-15 09:07:23 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2007-11-26 09:42:30 -0800
commit332a20e37fed150e5d45aa6f8c8511568504d139 (patch)
treedfdb5e09c3f493b38aaf50b30fdc707c5ca95218 /arch
parentca1b1e5c86d9dd07e3b9ec76e5f771fb2aebcab9 (diff)
libcrc32c: keep intermediate crc state in cpu order
It's upstream changeset ef19454bd437b2ba14c9cda1de85debd9f383484. [LIB] crc32c: Keep intermediate crc state in cpu order crypto/crc32.c:chksum_final() is computing the digest as *(__le32 *)out = ~cpu_to_le32(mctx->crc); so the low-level crc32c_le routines should just keep the crc in cpu order, otherwise it is getting swabbed one too many times on big-endian machines. Signed-off-by: Benny Halevy <bhalevy@fs1.bhalevy.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions