]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] fix csum_ipv6_magic()
authorJiri Bohac <jbohac@suse.cz>
Wed, 2 Sep 2009 09:00:46 +0000 (11:00 +0200)
committerTony Luck <tony.luck@intel.com>
Wed, 2 Sep 2009 16:14:48 +0000 (09:14 -0700)
commitdccccf0a68acd4ceaa4370b114c8c67d1591415d
tree52d2b9272cce5b3343317c56ba408dd3c28d4331
parent809876da0807ff2b1f46fac887a2366cf0404411
[IA64] fix csum_ipv6_magic()

The 32-bit parameters (len and csum) of csum_ipv6_magic() are passed in 64-bit
registers in2 and in4. The high order 32 bits of the registers were never
cleared, and garbage was sometimes calculated into the checksum.

Fix this by clearing the high order 32 bits of these registers.

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/lib/ip_fast_csum.S