misc: Fix allocation 'borrowed' by vhost_net
[safe/jmp/linux-2.6] / arch / x86 / lib / atomic64_cx8_32.S
index e49c4eb..71e080d 100644 (file)
@@ -180,7 +180,7 @@ ENTRY(atomic64_add_unless_cx8)
        cmpxchg8b (%ebp)
        jne 1b
 
-       xorl %eax, %eax
+       movl $1, %eax
 3:
        addl $8, %esp
        CFI_ADJUST_CFA_OFFSET -8
@@ -190,7 +190,7 @@ ENTRY(atomic64_add_unless_cx8)
 4:
        cmpl %edx, 4(%esp)
        jne 2b
-       movl $1, %eax
+       xorl %eax, %eax
        jmp 3b
        CFI_ENDPROC
 ENDPROC(atomic64_add_unless_cx8)
@@ -212,14 +212,13 @@ ENTRY(atomic64_inc_not_zero_cx8)
        cmpxchg8b (%esi)
        jne 1b
 
-       xorl %eax, %eax
+       movl $1, %eax
 3:
        RESTORE ebx
        ret
 4:
        testl %edx, %edx
        jne 2b
-       movl $1, %eax
        jmp 3b
        CFI_ENDPROC
 ENDPROC(atomic64_inc_not_zero_cx8)