diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index a5ebd7d9c472195b77f3ceeecc5b631fa7332ac5..a5d41dfa9f05d6363d0ea3253493a7539842df32 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -117,6 +117,7 @@ void nf_log_unregister(struct nf_logger *logger) RCU_INIT_POINTER(loggers[i][logger->type], NULL); } mutex_unlock(&nf_log_mutex); + synchronize_rcu(); } EXPORT_SYMBOL(nf_log_unregister);