summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_umtx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 032f6b4..cbd2e5a 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -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;
/*
OpenPOWER on IntegriCloud