aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-10-15 11:20:16 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-10-15 11:20:16 +0000
commit93cfeb0ed9d94bc3a86381ef9917cff7a64dda54 (patch)
tree546320c888305b5589bef3f7dd63878186eef4e0
parent427c402de2dda60bae24956720bb2ab00f77b915 (diff)
downloadsrc-93cfeb0ed9d94bc3a86381ef9917cff7a64dda54.tar.gz
src-93cfeb0ed9d94bc3a86381ef9917cff7a64dda54.zip
Exclude the network link eventhandler from epochification after r353292.
This fixes the following assert when "options RATELIMIT" is used: panic() malloc() sysctl_add_oid() tcp_rl_ifnet_link() do_link_state_change() taskqueue_run_locked() Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=353549
-rw-r--r--sys/net/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 1d19b1cf9de1..88c759fb4643 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -2353,9 +2353,9 @@ do_link_state_change(void *arg, int pending)
if (log_link_state_change)
if_printf(ifp, "link state changed to %s\n",
(link_state == LINK_STATE_UP) ? "UP" : "DOWN" );
+ NET_EPOCH_EXIT(et);
EVENTHANDLER_INVOKE(ifnet_link_event, ifp, link_state);
CURVNET_RESTORE();
- NET_EPOCH_EXIT(et);
}
/*