diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 9562e393fdf7e178b0c48bff25ace88495c2224f..49a64174f3f1777bc015ee01d7692afceb5dc0da 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -154,8 +154,7 @@ int nf_logger_find_get(int pf, enum nf_log_type type) struct nf_logger *logger; int ret = -ENOENT; - logger = loggers[pf][type]; - if (logger == NULL) + if (rcu_access_pointer(loggers[pf][type]) == NULL) request_module("nf-logger-%u-%u", pf, type); rcu_read_lock();