git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[pandora-kernel.git]
/
lib
/
atomic64.c
diff --git
a/lib/atomic64.c
b/lib/atomic64.c
index
8bee16e
..
a21c12b
100644
(file)
--- a/
lib/atomic64.c
+++ b/
lib/atomic64.c
@@
-162,12
+162,12
@@
int atomic64_add_unless(atomic64_t *v, long long a, long long u)
{
unsigned long flags;
spinlock_t *lock = lock_addr(v);
- int ret =
1
;
+ int ret =
0
;
spin_lock_irqsave(lock, flags);
if (v->counter != u) {
v->counter += a;
- ret =
0
;
+ ret =
1
;
}
spin_unlock_irqrestore(lock, flags);
return ret;