summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2010-08-20 23:51:34 +0000
committerdavidxu <davidxu@FreeBSD.org>2010-08-20 23:51:34 +0000
commit84d25462c95b8281bd9a3f7b4171c8537fc9449f (patch)
treed7ccd394dbed463165ede38ab28878dc7a0e9df2 /sys/kern
parentd4890c88b0febe402398e0a0bb66efdc998dd9c9 (diff)
downloadFreeBSD-src-84d25462c95b8281bd9a3f7b4171c8537fc9449f.zip
FreeBSD-src-84d25462c95b8281bd9a3f7b4171c8537fc9449f.tar.gz
make sure thread lock is locked.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_sleepqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c
index 0d2c65e..cc20799 100644
--- a/sys/kern/subr_sleepqueue.c
+++ b/sys/kern/subr_sleepqueue.c
@@ -411,6 +411,7 @@ sleepq_catch_signals(void *wchan, int pri)
if ((td->td_pflags & TDP_WAKEUP) != 0) {
td->td_pflags &= ~TDP_WAKEUP;
ret = EINTR;
+ thread_lock(td);
goto out;
}
OpenPOWER on IntegriCloud