Commit e7ea2a52 authored by Wei Yongjun's avatar Wei Yongjun Committed by Pablo Neira Ayuso

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 212dfd90
...@@ -271,7 +271,7 @@ const char *nf_osf_find(const struct sk_buff *skb, ...@@ -271,7 +271,7 @@ const char *nf_osf_find(const struct sk_buff *skb,
tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts); tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts);
if (!tcp) if (!tcp)
return false; return NULL;
list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) { list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) {
f = &kf->finger; f = &kf->finger;
......
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