aboutsummaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-01-22 10:58:21 +0100
committerRalf Baechle <ralf@linux-mips.org>2013-03-11 16:34:50 +0100
commit63981a4096081f3a35351f56fa89e91f493c02c7 (patch)
treec08a734a769c90e0b97dda2238870a43d2a20a25 /arch/mips
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9 (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>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/linux32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c
index 8eeee1c860c..db9655f0889 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,
err = compat_sys_shmctl(first, second, compat_ptr(ptr));
break;
default:
- err = -EINVAL;
+ err = -ENOSYS;
break;
}