From: Bernd Schmidt Date: Wed, 7 Jan 2009 15:14:39 +0000 (+0800) Subject: Blackfin arch: fix bug - crashes in tcp_v4_send_reset X-Git-Tag: v2.6.29-rc1~189^2~49 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b13120d23bf4b066a36a9414514f992eb3907e4b;p=linux-2.6-omap-h63xx.git Blackfin arch: fix bug - crashes in tcp_v4_send_reset Michael says that some bugs are crashes in tcp_v4_send_reset. There's a missing clobber of "CC" in our checksum assembly statement; fixing this makes the generated code look much saner. Signed-off-by: Bernd Schmidt Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/include/asm/checksum.h b/arch/blackfin/include/asm/checksum.h index 6f6af2b8e9e..f67289a0d8d 100644 --- a/arch/blackfin/include/asm/checksum.h +++ b/arch/blackfin/include/asm/checksum.h @@ -78,7 +78,8 @@ csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, "%0 = %0 + %4;\n\t" "NOP;\n\t" : "=d" (sum) - : "d" (daddr), "d" (saddr), "d" ((ntohs(len)<<16)+proto*256), "d" (1), "0"(sum)); + : "d" (daddr), "d" (saddr), "d" ((ntohs(len)<<16)+proto*256), "d" (1), "0"(sum) + : "CC"); return (sum); }