From 04996cb74b187184e2d7b9015bb193e834985044 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sat, 15 Aug 2020 11:22:07 +0000 Subject: Enter epoch earlier. This is needed because we are exiting it also in error cases. MFC after: 1 week --- sys/netinet/sctputil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 41c202c0d62f..74e645660096 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -1727,6 +1727,7 @@ sctp_timeout_handler(void *t) stcb = (struct sctp_tcb *)tmr->tcb; net = (struct sctp_nets *)tmr->net; CURVNET_SET((struct vnet *)tmr->vnet); + NET_EPOCH_ENTER(et); did_output = 1; released_asoc_reference = false; @@ -1786,7 +1787,6 @@ sctp_timeout_handler(void *t) /* Record in stopped_from which timeout occurred. */ tmr->stopped_from = type; - NET_EPOCH_ENTER(et); /* mark as being serviced now */ if (SCTP_OS_TIMER_PENDING(&tmr->timer)) { /* -- cgit v1.2.3