Commit c5a589cc authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

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: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 01cfa0a4
...@@ -154,8 +154,7 @@ int nf_logger_find_get(int pf, enum nf_log_type type) ...@@ -154,8 +154,7 @@ int nf_logger_find_get(int pf, enum nf_log_type type)
struct nf_logger *logger; struct nf_logger *logger;
int ret = -ENOENT; int ret = -ENOENT;
logger = loggers[pf][type]; if (rcu_access_pointer(loggers[pf][type]) == NULL)
if (logger == NULL)
request_module("nf-logger-%u-%u", pf, type); request_module("nf-logger-%u-%u", pf, type);
rcu_read_lock(); rcu_read_lock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment