Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68623
b: refs/heads/master
c: 7379b42
h: refs/heads/master
i:
  68621: d990570
  68619: 03f7817
  68615: 937a663
  68607: 55b50b9
v: v3
  • Loading branch information
David S. Miller committed Oct 14, 2007
1 parent 8f6442f commit 9a81308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: fa7744dbb69c06b69c7449063c440d8a53df9e6c
refs/heads/master: 7379b42b607782695f49d05c80d3eb99e5072908
15 changes: 4 additions & 11 deletions trunk/arch/sparc64/kernel/sys_sparc.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ asmlinkage long sparc_pipe(struct pt_regs *regs)
asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second,
unsigned long third, void __user *ptr, long fifth)
{
int err;
long err;

/* No need for backward compatibility. We can start fresh... */
if (call <= SEMCTL) {
Expand All @@ -453,16 +453,9 @@ asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second,
err = sys_semget(first, (int)second, (int)third);
goto out;
case SEMCTL: {
union semun fourth;
err = -EINVAL;
if (!ptr)
goto out;
err = -EFAULT;
if (get_user(fourth.__pad,
(void __user * __user *) ptr))
goto out;
err = sys_semctl(first, (int)second | IPC_64,
(int)third, fourth);
err = sys_semctl(first, third,
(int)second | IPC_64,
(union semun) ptr);
goto out;
}
default:
Expand Down

0 comments on commit 9a81308

Please sign in to comment.