Index: if.c =================================================================== RCS file: /cvs/src/sys/net/if.c,v retrieving revision 1.600 diff -u -p -r1.600 if.c --- if.c 24 Jan 2020 05:14:51 -0000 1.600 +++ if.c 10 Mar 2020 00:24:00 -0000 @@ -1050,10 +1050,9 @@ if_hooks_run(struct task_list *hooks) mtx_enter(&if_hooks_mtx); for (t = TAILQ_FIRST(hooks); t != NULL; t = nt) { - while (t->t_func == NULL) { /* skip cursors */ - t = TAILQ_NEXT(t, t_entry); - if (t == NULL) - break; + if (t->t_func == NULL) { /* skip cursors */ + nt = TAILQ_NEXT(t, t_entry); + continue; } func = t->t_func; arg = t->t_arg;