ChangeSet 1.2231.1.35, 2005/03/28 19:26:01-08:00, [EMAIL PROTECTED]

        [PATCH] ppc64: fix semtimedop compat syscall
        
        As with sparc64, the ppc64 version of semtimedop was incorrect - the
        timeout is in the fifth argument. I got caught copying again :)
        
        Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 sys_ppc32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/arch/ppc64/kernel/sys_ppc32.c b/arch/ppc64/kernel/sys_ppc32.c
--- a/arch/ppc64/kernel/sys_ppc32.c     2005-03-28 21:14:02 -08:00
+++ b/arch/ppc64/kernel/sys_ppc32.c     2005-03-28 21:14:02 -08: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 :)) */
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to