projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
566a3b9
)
MIPS: o32: Fix number of arguments to splice(2).
author
Ralf Baechle
<ralf@linux-mips.org>
Wed, 3 Dec 2008 16:33:17 +0000
(16:33 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Thu, 4 Dec 2008 17:47:28 +0000
(17:47 +0000)
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 <ralf@linux-mips.org>
arch/mips/kernel/scall32-o32.S
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/scall32-o32.S
b/arch/mips/kernel/scall32-o32.S
index 34a4dbd76f242719bdbccc1a6fa70b9d97b23a40..d0916a55cd775f09f54826eb9358c626ba19dd7d 100644
(file)
--- 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