Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42009
b: refs/heads/master
c: 1bddcc5
h: refs/heads/master
i:
  42007: fc35c72
v: v3
  • Loading branch information
David Wu authored and Linus Torvalds committed Dec 4, 2006
1 parent 94cf1ff commit 84fb327
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 329237c12b94911dfad128e2588b0b7ae9c516e7
refs/heads/master: 1bddcc50c27c8ca39a62a1d37e3928707be8f850
23 changes: 22 additions & 1 deletion trunk/arch/m68knommu/kernel/sys_m68k.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ asmlinkage int old_select(struct sel_arg_struct *arg)
asmlinkage int sys_ipc (uint call, int first, int second,
int third, void *ptr, long fifth)
{
int version;
int version, ret;

version = call >> 16; /* hack for backward compatibility */
call &= 0xffff;
Expand Down Expand Up @@ -190,6 +190,27 @@ asmlinkage int sys_ipc (uint call, int first, int second,
default:
return -EINVAL;
}
if (call <= SHMCTL)
switch (call) {
case SHMAT:
switch (version) {
default: {
ulong raddr;
ret = do_shmat (first, ptr, second, &raddr);
if (ret)
return ret;
return put_user (raddr, (ulong __user *) third);
}
}
case SHMDT:
return sys_shmdt (ptr);
case SHMGET:
return sys_shmget (first, second, third);
case SHMCTL:
return sys_shmctl (first, second, ptr);
default:
return -ENOSYS;
}

return -EINVAL;
}
Expand Down

0 comments on commit 84fb327

Please sign in to comment.