1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00

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
This commit is contained in:
Julien Charbon 2015-08-27 08:58:03 +00:00
parent 7a79cebfba
commit 682d0e15b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287198

View File

@ -1385,7 +1385,8 @@ _callout_stop_safe(struct callout *c, int safe)
* 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);