diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 10:58:21 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-03-11 16:34:50 +0100 |
commit | 63981a4096081f3a35351f56fa89e91f493c02c7 (patch) | |
tree | c08a734a769c90e0b97dda2238870a43d2a20a25 /arch/mips | |
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>
Diffstat (limited to 'arch/mips')
-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, err = compat_sys_shmctl(first, second, compat_ptr(ptr)); break; default: - err = -EINVAL; + err = -ENOSYS; break; } |