projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20eb5e7
)
netfilter: conntrack: Convert to use ERR_CAST()
author
Shen Lichuan
<shenlichuan@vivo.com>
Wed, 28 Aug 2024 11:06:51 +0000
(19:06 +0800)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 3 Sep 2024 08:47:16 +0000
(10:47 +0200)
Use the ERR_CAST macro to clearly indicate that this is a pointer
to an error value and that a type conversion was performed.
Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_core.c
b/net/netfilter/nf_conntrack_core.c
index
9384426
..
d3cb53b
100644
(file)
--- a/
net/netfilter/nf_conntrack_core.c
+++ b/
net/netfilter/nf_conntrack_core.c
@@
-1722,7
+1722,7
@@
init_conntrack(struct net *net, struct nf_conn *tmpl,
ct = __nf_conntrack_alloc(net, zone, tuple, &repl_tuple, GFP_ATOMIC,
hash);
if (IS_ERR(ct))
- return
(struct nf_conntrack_tuple_hash *)ct
;
+ return
ERR_CAST(ct)
;
if (!nf_ct_add_synproxy(ct, tmpl)) {
nf_conntrack_free(ct);