Message ID | 20240905232920.5481-5-pablo@netfilter.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 09c0d0aef56b3b026b55be092fd9e81f3ae0c8a9 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,01/16] netfilter: ctnetlink: support CTA_FILTER for flush | expand |
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 9384426ddc06..d3cb53b008f5 100644 --- 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);