Commit c553b651 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k sys_ipc ENOSYS

M68k: Fix sys_ipc() to return ENOSYS instead of EINVAL as appropriate.
parent c977adde
......@@ -202,7 +202,7 @@ asmlinkage int sys_ipc (uint call, int first, int second,
return sys_semctl (first, second, third, fourth);
}
default:
return -EINVAL;
return -ENOSYS;
}
if (call <= MSGCTL)
switch (call) {
......@@ -233,7 +233,7 @@ asmlinkage int sys_ipc (uint call, int first, int second,
return sys_msgctl (first, second,
(struct msqid_ds *) ptr);
default:
return -EINVAL;
return -ENOSYS;
}
if (call <= SHMCTL)
switch (call) {
......@@ -256,7 +256,7 @@ asmlinkage int sys_ipc (uint call, int first, int second,
return sys_shmctl (first, second,
(struct shmid_ds *) ptr);
default:
return -EINVAL;
return -ENOSYS;
}
return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment