diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-01-22 09:58:21 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-03-11 15:34:50 (GMT) |
commit | 63981a4096081f3a35351f56fa89e91f493c02c7 (patch) | |
tree | c08a734a769c90e0b97dda2238870a43d2a20a25 | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) | |
download | linux-fsl-qoriq-63981a4096081f3a35351f56fa89e91f493c02c7.tar.xz |
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 8eeee1c..db9655f 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; } |