x86: Fix csum_ipv6_magic asm memory clobber
commitd1716a60a8ea90788d24aa22d7eec83fbdd2d88a
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 30 Sep 2009 23:19:39 +0000 (30 16:19 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 1 Oct 2009 06:11:26 +0000 (1 08:11 +0200)
tree780fcc4bd7c6f1454833de81e6a62d6df9b45b58
parent982d007a6eec4a0abb404d2355eeec2c041c61ea
x86: Fix csum_ipv6_magic asm memory clobber

Just like ip_fast_csum, the assembly snippet in csum_ipv6_magic needs a
memory clobber, as it is only passed the address of the buffer, not a
memory reference to the buffer itself.

This caused failures in Hurd's pfinetv4 when we tried to compile it with
gcc-4.3 (bogus checksums).

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/checksum_32.h