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

netfilter: nf_conntrack: fix error return code

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in function
nf_conntrack_standalone_init().
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent deadcfc3
...@@ -568,6 +568,7 @@ static int __init nf_conntrack_standalone_init(void) ...@@ -568,6 +568,7 @@ static int __init nf_conntrack_standalone_init(void)
register_net_sysctl(&init_net, "net", nf_ct_netfilter_table); register_net_sysctl(&init_net, "net", nf_ct_netfilter_table);
if (!nf_ct_netfilter_header) { if (!nf_ct_netfilter_header) {
pr_err("nf_conntrack: can't register to sysctl.\n"); pr_err("nf_conntrack: can't register to sysctl.\n");
ret = -ENOMEM;
goto out_sysctl; goto out_sysctl;
} }
#endif #endif
......
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