From: Arnd Bergmann Date: Tue, 23 Jun 2009 19:22:58 +0000 (+0200) Subject: lib/checksum.c: use 32-bit arithmetic consistently X-Git-Tag: v2.6.33-rc1~301^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c44ba9f6684946b156335da6a6d55f0b8cf7cb72;p=pandora-kernel.git 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 Signed-off-by: Arnd Bergmann --- Reading git-diff-tree failed