mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
deadcfc332
commit
5389090b59
1 changed files with 1 additions and 0 deletions
|
@ -568,6 +568,7 @@ static int __init nf_conntrack_standalone_init(void)
|
|||
register_net_sysctl(&init_net, "net", nf_ct_netfilter_table);
|
||||
if (!nf_ct_netfilter_header) {
|
||||
pr_err("nf_conntrack: can't register to sysctl.\n");
|
||||
ret = -ENOMEM;
|
||||
goto out_sysctl;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue