mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Return EINVAL if the contested bit is not set on the umtx passed to
_umtx_unlock() instead of firing a KASSERT.
This commit is contained in:
parent
4fe15b85a6
commit
f05a427aa6
1 changed files with 2 additions and 1 deletions
|
|
@ -265,7 +265,8 @@ _umtx_unlock(struct thread *td, struct _umtx_unlock_args *uap)
|
|||
return (EPERM);
|
||||
|
||||
/* We should only ever be in here for contested locks */
|
||||
KASSERT((owner & UMTX_CONTESTED) != 0, ("contested umtx is not."));
|
||||
if ((owner & UMTX_CONTESTED) == 0)
|
||||
return (EINVAL);
|
||||
blocked = NULL;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue