Merge branch 'stable-3.2' into pandora-3.2
[pandora-kernel.git] / arch / mips / kernel / syscall.c
index d027657..4e40a90 100644 (file)
@@ -203,7 +203,7 @@ static inline int mips_atomic_set(struct pt_regs *regs,
                "1:     ll      %[old], (%[addr])                       \n"
                "       move    %[tmp], %[new]                          \n"
                "2:     sc      %[tmp], (%[addr])                       \n"
-               "       bnez    %[tmp], 4f                              \n"
+               "       beqz    %[tmp], 4f                              \n"
                "3:                                                     \n"
                "       .subsection 2                                   \n"
                "4:     b       1b                                      \n"