mtx: fix up owner_mtx after r324609
Now that MTX_UNOWNED is 0 the test was alwayas false.
This commit is contained in:
parent
03b10745ce
commit
e99dca871b
@ -217,7 +217,7 @@ owner_mtx(const struct lock_object *lock, struct thread **owner)
|
||||
m = (const struct mtx *)lock;
|
||||
x = m->mtx_lock;
|
||||
*owner = (struct thread *)(x & ~MTX_FLAGMASK);
|
||||
return (x != MTX_UNOWNED);
|
||||
return (*owner != NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user