From: David S. Miller Date: Fri, 25 Apr 2008 09:12:05 +0000 (-0700) Subject: SPARC64: Fix args to 64-bit sys_semctl() via sys_ipc(). X-Git-Tag: v2.6.25.4~27 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ed040a11b798aa4302013988cbca99160c5f7bc6;p=karo-tx-linux.git SPARC64: Fix args to 64-bit sys_semctl() via sys_ipc(). [ Upstream commit: 020cfb05f2c594c778537159bd45ea5efb0c5e0d ] Second and third arguments were swapped for whatever reason. Reported by Tom Callaway. Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/sparc64/kernel/sys_sparc.c b/arch/sparc64/kernel/sys_sparc.c index cc3793644a6a..6f771060420e 100644 --- a/arch/sparc64/kernel/sys_sparc.c +++ b/arch/sparc64/kernel/sys_sparc.c @@ -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; }