diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 04:58:21 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-03-11 11:34:50 -0400 |
commit | 63981a4096081f3a35351f56fa89e91f493c02c7 (patch) | |
tree | c08a734a769c90e0b97dda2238870a43d2a20a25 | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) |
MIPS: compat: Return same error ENOSYS as native for invalid operation.
The pains for multiplexed syscalls.
Noticed by Al Viro <viro@zeniv.linux.org.uk>.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/linux32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index 8eeee1c860c0..db9655f08892 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
@@ -171,7 +171,7 @@ SYSCALL_DEFINE6(32_ipc, u32, call, long, first, long, second, long, third, | |||
171 | err = compat_sys_shmctl(first, second, compat_ptr(ptr)); | 171 | err = compat_sys_shmctl(first, second, compat_ptr(ptr)); |
172 | break; | 172 | break; |
173 | default: | 173 | default: |
174 | err = -EINVAL; | 174 | err = -ENOSYS; |
175 | break; | 175 | break; |
176 | } | 176 | } |
177 | 177 | ||