summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_umtx.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-07-23 20:29:13 +0000
committerpeter <peter@FreeBSD.org>2003-07-23 20:29:13 +0000
commitc25984e00ee6d0d566777a164fe1361f941ad05c (patch)
tree0cde3ea70bd0f989e614c03a26ed37b2620c1255 /sys/kern/kern_umtx.c
parent585a2cb0b667c47ab8b74866b3b38919a9d4f4cb (diff)
downloadFreeBSD-src-c25984e00ee6d0d566777a164fe1361f941ad05c.zip
FreeBSD-src-c25984e00ee6d0d566777a164fe1361f941ad05c.tar.gz
Initialize 'blocked' to NULL. I think this was a real problem, but I
am not sure about that. The lack of -Werror and the inline noise hid this for a while.
Diffstat (limited to 'sys/kern/kern_umtx.c')
-rw-r--r--sys/kern/kern_umtx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 05c6577..032f6b4 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -266,6 +266,7 @@ _umtx_unlock(struct thread *td, struct _umtx_unlock_args *uap)
/* We should only ever be in here for contested locks */
KASSERT((owner & UMTX_CONTESTED) != 0, ("contested umtx is not."));
+ blocked = NULL;
/*
* When unlocking the umtx, it must be marked as unowned if
OpenPOWER on IntegriCloud