MIPS: compat: Return same error ENOSYS as native for invalid operation.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 22 Jan 2013 09:58:21 +0000 (10:58 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 11 Mar 2013 15:34:50 +0000 (16:34 +0100)
The pains for multiplexed syscalls.

Noticed by Al Viro <viro@zeniv.linux.org.uk>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/linux32.c

index 8eeee1c..db9655f 100644 (file)
@@ -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;
        }