summaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-08-08 03:23:44 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-08 19:05:39 +0200
commite7ea2a52ffaf60a211edc0df97dcf194d1257714 (patch)
tree2dd12451a8539ee1eab582db204f768c2d89b07c /net/netfilter
parent212dfd909ea8b630e5d6fa4d25aeec9c4b4b14a5 (diff)
downloadlinux-e7ea2a52ffaf60a211edc0df97dcf194d1257714.tar.bz2
netfilter: nfnetlink_osf: fix using plain integer as NULL warning
Fixes the following sparse warning: net/netfilter/nfnetlink_osf.c:274:24: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nfnetlink_osf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_osf.c b/net/netfilter/nfnetlink_osf.c
index f9dba62c450f..00db27dfd2ff 100644
--- a/net/netfilter/nfnetlink_osf.c
+++ b/net/netfilter/nfnetlink_osf.c
@@ -271,7 +271,7 @@ const char *nf_osf_find(const struct sk_buff *skb,
tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts);
if (!tcp)
- return false;
+ return NULL;
list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) {
f = &kf->finger;