diff options
Diffstat (limited to 'linux/six.c')
-rw-r--r-- | linux/six.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/six.c b/linux/six.c index fe721891..fca12087 100644 --- a/linux/six.c +++ b/linux/six.c @@ -252,12 +252,13 @@ retry: old.v, new.v)) != old.v); ret = !(old.v & l[type].lock_fail); + + EBUG_ON(ret && !(lock->state.v & l[type].held_mask)); } if (ret) six_set_owner(lock, type, old); - EBUG_ON(ret && !(lock->state.v & l[type].held_mask)); EBUG_ON(type == SIX_LOCK_write && (try || ret) && (lock->state.write_locking)); return ret; |