mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Move KASSERT regarding td_critnest to after the value of td is set to
curthread, to avoid warning and incorrect behavior. Hoped not to mind: jeff
This commit is contained in:
parent
6767c6547b
commit
fca542bcaa
1 changed files with 1 additions and 2 deletions
|
|
@ -443,9 +443,8 @@ critical_exit(void)
|
|||
{
|
||||
struct thread *td;
|
||||
|
||||
KASSERT(td->td_critnest > 0,
|
||||
("critical_exit: critnest < 0"));
|
||||
td = curthread;
|
||||
KASSERT(td->td_critnest > 0, ("critical_exit: critnest < 0"));
|
||||
if (td->td_critnest == 1) {
|
||||
td->td_critnest = 0;
|
||||
cpu_critical_exit();
|
||||
|
|
|
|||
Loading…
Reference in a new issue