mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
It would appear that we never actually generated a correct CRC when building on a bigendian machine. Depending on the word size, we would either generate an all-zero CRC (64-bit machine) or a byte-swapped CRC (32-bit machine.) Fix the types used so we don't arbitrarily use a 64-bit word to hold 32-bit numbers, and pass the CRC through put_unaligned_le32() like all the other numbers. Signed-off-by: H. Peter Anvin <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Matt Fleming <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Nick Bowler <[email protected]> Link: http://lkml.kernel.org/r/[email protected]