]> nv-tegra.nvidia Code Review - linux-3.10.git/commit - arch/ia64/ia32
[PATCH] x86-64: Fix 32bit sendfile
authorTsuneo.Yoshioka@f-secure.com <Tsuneo.Yoshioka@f-secure.com>
Mon, 12 Sep 2005 16:49:24 +0000 (18:49 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 12 Sep 2005 17:49:57 +0000 (10:49 -0700)
commit83b942bd3437d84d6ddf582477120b6b86369052
tree75fcfc6d7f175cd35911bf93713d45a82c67a3fc
parent9acf23c42b13d682abbd5db1d293c7a77ae54b61
[PATCH] x86-64: Fix 32bit sendfile

If we use 64bit kernel on ia64/x86_64/s390 architecture, and we run
32bit binary on 32bit compatibility mode, sendfile system call seems be
not set offset argument.

This is because sendfile's return value is not zero but the code regards
the result by return value is zero or not.

This problem will be affect to ia64/x86_64/s390 and not affect to other
architecture does not affect other architecture (mips/parisc/ppc64/sparc64).

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ia64/ia32/sys_ia32.c
arch/s390/kernel/compat_linux.c
arch/x86_64/ia32/sys_ia32.c