diff options
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/spinlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/spinlock.c b/source3/tdb/spinlock.c index d2ed381a17..0a68981ca2 100644 --- a/source3/tdb/spinlock.c +++ b/source3/tdb/spinlock.c @@ -94,7 +94,7 @@ static inline int __spin_trylock(spinlock_t *lock) : "r"(lock) : "cr0", "memory"); - return (result == 0) ? 0 : EBUSY; + return (result == 1) ? 0 : EBUSY; } static inline void __spin_unlock(spinlock_t *lock) |