mtx: fix up owner_mtx after r324609

Now that MTX_UNOWNED is 0 the test was alwayas false.
This commit is contained in:
mjg 2017-10-14 00:47:30 +00:00
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