sparc: Fix __atomic_add_unless() return value.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fabb5bd96d
commit
a61b582954
@@ -65,7 +65,7 @@ int __atomic_add_unless(atomic_t *v, int a, int u)
|
|||||||
if (ret != u)
|
if (ret != u)
|
||||||
v->counter += a;
|
v->counter += a;
|
||||||
spin_unlock_irqrestore(ATOMIC_HASH(v), flags);
|
spin_unlock_irqrestore(ATOMIC_HASH(v), flags);
|
||||||
return ret != u;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(__atomic_add_unless);
|
EXPORT_SYMBOL(__atomic_add_unless);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user