From 4015a832a39a1f863ec63a677721435df9a71b95 Mon Sep 17 00:00:00 2001 From: jch Date: Thu, 27 Aug 2015 08:58:03 +0000 Subject: [PATCH] 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 --- sys/kern/kern_timeout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 995954d72e7c..e88c8316a1ec 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); -- 2.41.0