summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
authorjch <jch@FreeBSD.org>2015-08-27 08:58:03 +0000
committerjch <jch@FreeBSD.org>2015-08-27 08:58:03 +0000
commit4015a832a39a1f863ec63a677721435df9a71b95 (patch)
treea6495ac2437cae55a87804f773588b1b2a34ef8d /sys/kern/kern_timeout.c
parent619aca846fad0cf56fcd9c3374008f26a6f98b24 (diff)
downloadFreeBSD-src-4015a832a39a1f863ec63a677721435df9a71b95.zip
FreeBSD-src-4015a832a39a1f863ec63a677721435df9a71b95.tar.gz
In callout_stop(), do not forget to initialize not_running variable.
Thanks to hselasky for noticing that. Differential Revision: https://reviews.freebsd.org/D3078 (Updated) Submitted by: hselasky Pointy hat to: jch
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r--sys/kern/kern_timeout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index 995954d..e88c831 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -1385,7 +1385,8 @@ again:
* and indeed impossible to stop then return 0.
*/
not_running = !(cc_exec_curr(cc, direct) == c);
- }
+ } else
+ not_running = 1;
CC_UNLOCK(cc);
return (not_running);
OpenPOWER on IntegriCloud