From: Ralf Baechle Date: Wed, 3 Dec 2008 16:33:17 +0000 (+0000) Subject: MIPS: o32: Fix number of arguments to splice(2). X-Git-Tag: v2.6.28-rc8~61^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=08d30879a6d3ce399f48def7c494853b5b5f2062;p=linux-2.6-omap-h63xx.git MIPS: o32: Fix number of arguments to splice(2). The syscall code was assuming splice only takes 4 arguments so no stack arguments were being copied from the userspace stack to the kernel stack. As the result splice was likely to fail with EINVAL. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 34a4dbd76f2..d0916a55cd7 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S @@ -624,7 +624,7 @@ einval: li v0, -ENOSYS sys sys_pselect6 6 sys sys_ppoll 5 sys sys_unshare 1 - sys sys_splice 4 + sys sys_splice 6 sys sys_sync_file_range 7 /* 4305 */ sys sys_tee 4 sys sys_vmsplice 4