Skip to content

Commit

Permalink
[SPARC64]: Fix args to 64-bit sys_semctl() via sys_ipc().
Browse files Browse the repository at this point in the history
Second and third arguments were swapped for whatever reason.

Reported by Tom Callaway.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 25, 2008
1 parent b69d398 commit 020cfb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sparc64/kernel/sys_sparc.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second,
err = sys_semget(first, (int)second, (int)third);
goto out;
case SEMCTL: {
err = sys_semctl(first, third,
(int)second | IPC_64,
err = sys_semctl(first, second,
(int)third | IPC_64,
(union semun) ptr);
goto out;
}
Expand Down

0 comments on commit 020cfb0

Please sign in to comment.