diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-06-23 21:22:58 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2009-11-03 16:06:52 +0100 |
commit | c44ba9f6684946b156335da6a6d55f0b8cf7cb72 (patch) | |
tree | 8a24ba039b08fc8bb95a670e33ef7312443576da /lib/iommu-helper.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 (diff) | |
download | linux-c44ba9f6684946b156335da6a6d55f0b8cf7cb72.tar.xz linux-c44ba9f6684946b156335da6a6d55f0b8cf7cb72.zip |
lib/checksum.c: use 32-bit arithmetic consistently
The use of 'unsigned long' variables in the 32-bit part of do_csum()
is confusing at best, and potentially broken for long input on 64-bit
machines.
This changes the code to use 'unsigned int' instead, which makes
the code behave in the same (correct) way on both 32 and 64 bit
machines.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'lib/iommu-helper.c')
0 files changed, 0 insertions, 0 deletions