projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a923c28
)
sparc: sys32.S incorrect compat-layer splice() system call
author
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Wed, 19 Aug 2009 03:16:55 +0000
(20:16 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 19 Aug 2009 03:16:55 +0000
(20:16 -0700)
I think arch/sparc/kernel/sys32.S has an incorrect splice definition:
SIGN2(sys32_splice, sys_splice, %o0, %o1)
The splice() prototype looks like :
long splice(int fd_in, loff_t *off_in, int fd_out,
loff_t *off_out, size_t len, unsigned int flags);
So I think we should have :
SIGN2(sys32_splice, sys_splice, %o0, %o2)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sys32.S
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/sys32.S
b/arch/sparc/kernel/sys32.S
index 577f8fab8b6bac7c29783c85c593fc1376a1a776..aed94869ad6a6436b5d4848acb322d8900baf6ff 100644
(file)
--- a/
arch/sparc/kernel/sys32.S
+++ b/
arch/sparc/kernel/sys32.S
@@
-134,7
+134,7
@@
SIGN1(sys32_getpeername, sys_getpeername, %o0)
SIGN1(sys32_getsockname, sys_getsockname, %o0)
SIGN2(sys32_ioprio_get, sys_ioprio_get, %o0, %o1)
SIGN3(sys32_ioprio_set, sys_ioprio_set, %o0, %o1, %o2)
-SIGN2(sys32_splice, sys_splice, %o0, %o
1
)
+SIGN2(sys32_splice, sys_splice, %o0, %o
2
)
SIGN2(sys32_sync_file_range, compat_sync_file_range, %o0, %o5)
SIGN2(sys32_tee, sys_tee, %o0, %o1)
SIGN1(sys32_vmsplice, compat_sys_vmsplice, %o0)