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, ...@@ -202,7 +202,7 @@ asmlinkage int sys_ipc (uint call, int first, int second,
return sys_semctl (first, second, third, fourth); return sys_semctl (first, second, third, fourth);
} }
default: default:
return -EINVAL; return -ENOSYS;
} }
if (call <= MSGCTL) if (call <= MSGCTL)
switch (call) { switch (call) {
...@@ -233,7 +233,7 @@ asmlinkage int sys_ipc (uint call, int first, int second, ...@@ -233,7 +233,7 @@ asmlinkage int sys_ipc (uint call, int first, int second,
return sys_msgctl (first, second, return sys_msgctl (first, second,
(struct msqid_ds *) ptr); (struct msqid_ds *) ptr);
default: default:
return -EINVAL; return -ENOSYS;
} }
if (call <= SHMCTL) if (call <= SHMCTL)
switch (call) { switch (call) {
...@@ -256,7 +256,7 @@ asmlinkage int sys_ipc (uint call, int first, int second, ...@@ -256,7 +256,7 @@ asmlinkage int sys_ipc (uint call, int first, int second,
return sys_shmctl (first, second, return sys_shmctl (first, second,
(struct shmid_ds *) ptr); (struct shmid_ds *) ptr);
default: default:
return -EINVAL; return -ENOSYS;
} }
return -EINVAL; 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