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 8eeee1c860c08cd5ea0228e8387668cc2aaa0cc5..db9655f08892d73738664e45a48e088f941b263a 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;
        }