aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-10-30 13:39:12 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2014-11-04 11:56:31 -0500
commitc5a589cc3034d035e8490216a45abd3a3b3cd85e (patch)
tree8c7136a229b3a29dc0e9c3dcd85efb43aa93f63b
parent01cfa0a4ed82132abb6dc7bcb126eaf499cb8af0 (diff)
netfilter: nf_log: fix sparse warning in nf_logger_find_get()
net/netfilter/nf_log.c:157:16: warning: incorrect type in assignment (different address spaces) net/netfilter/nf_log.c:157:16: expected struct nf_logger *logger net/netfilter/nf_log.c:157:16: got struct nf_logger [noderef] <asn:4>*<noident> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--net/netfilter/nf_log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c
index 9562e393fdf7..49a64174f3f1 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)
154 struct nf_logger *logger; 154 struct nf_logger *logger;
155 int ret = -ENOENT; 155 int ret = -ENOENT;
156 156
157 logger = loggers[pf][type]; 157 if (rcu_access_pointer(loggers[pf][type]) == NULL)
158 if (logger == NULL)
159 request_module("nf-logger-%u-%u", pf, type); 158 request_module("nf-logger-%u-%u", pf, type);
160 159
161 rcu_read_lock(); 160 rcu_read_lock();