git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212dfd9
)
netfilter: nfnetlink_osf: fix using plain integer as NULL warning
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 8 Aug 2018 03:23:44 +0000
(
03:23
+0000)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 8 Aug 2018 17:05:39 +0000
(19:05 +0200)
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>
net/netfilter/nfnetlink_osf.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nfnetlink_osf.c
b/net/netfilter/nfnetlink_osf.c
index f9dba62c450f11a93cbda8aa7998c8f505b2da76..00db27dfd2ff72a9f6bf67354168711e40575fe0 100644
(file)
--- 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;