summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-12-08 22:37:47 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2020-12-08 22:37:47 +0100
commit6220e48d9640538ff700f2e7d24c2f9277555fd6 (patch)
treedf2a8d66ca8cefc69204bf2dde387666cf5ff487 /arch/sparc/lib
parentfix return values of seq_read_iter() (diff)
downloadlinux-6220e48d9640538ff700f2e7d24c2f9277555fd6.tar.xz
linux-6220e48d9640538ff700f2e7d24c2f9277555fd6.zip
[regression fix] really dumb fuckup in sparc64 __csum_partial_copy() changes
~0U is -1, not 1 Reported-by: Anatoly Pugachev <matorola@gmail.com> Tested-by: Anatoly Pugachev <matorola@gmail.com> Fixes: fdf8bee96f9a "sparc64: propagate the calling convention changes down to __csum_partial_copy_...()" X-brown-paperbag: yes Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/lib')
-rw-r--r--arch/sparc/lib/csum_copy.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/lib/csum_copy.S b/arch/sparc/lib/csum_copy.S
index 0c0268e77155..d839956407a7 100644
--- a/arch/sparc/lib/csum_copy.S
+++ b/arch/sparc/lib/csum_copy.S
@@ -71,7 +71,7 @@
FUNC_NAME: /* %o0=src, %o1=dst, %o2=len */
LOAD(prefetch, %o0 + 0x000, #n_reads)
xor %o0, %o1, %g1
- mov 1, %o3
+ mov -1, %o3
clr %o4
andcc %g1, 0x3, %g0
bne,pn %icc, 95f