[PATCH] ppc64: fix semtimedop compat syscall

Anton Blanchard anton at samba.org
Tue Mar 22 04:13:49 EST 2005


As with sparc64, the ppc64 version of semtimedop was incorrect - the
timeout is in the fifth argument. I got caught copying again :)

Dave: the sparc64 change only caught the second hunk, was that intended?

Signed-off-by: Anton Blanchard <anton at samba.org>

===== arch/ppc64/kernel/sys_ppc32.c 1.104 vs edited =====
--- 1.104/arch/ppc64/kernel/sys_ppc32.c	2005-01-26 08:50:22 +11:00
+++ edited/arch/ppc64/kernel/sys_ppc32.c	2005-03-21 11:09:32 +11:00
@@ -504,11 +504,11 @@
 	switch (call) {
 
 	case SEMTIMEDOP:
-		if (third)
+		if (fifth)
 			/* sign extend semid */
 			return compat_sys_semtimedop((int)first,
 						     compat_ptr(ptr), second,
-						     compat_ptr(third));
+						     compat_ptr(fifth));
 		/* else fall through for normal semop() */
 	case SEMOP:
 		/* struct sembuf is the same on 32 and 64bit :)) */



More information about the Linuxppc64-dev mailing list