mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
netfilter: nfnetlink_queue: fix error return code in nfnetlink_queue_init()
Fix to return a negative error code from the error handling case instead of 0, as returned elsewhere in this function. 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
130549fed8
commit
558724a5b2
1 changed files with 3 additions and 1 deletions
|
@ -1062,8 +1062,10 @@ static int __init nfnetlink_queue_init(void)
|
|||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
if (!proc_create("nfnetlink_queue", 0440,
|
||||
proc_net_netfilter, &nfqnl_file_ops))
|
||||
proc_net_netfilter, &nfqnl_file_ops)) {
|
||||
status = -ENOMEM;
|
||||
goto cleanup_subsys;
|
||||
}
|
||||
#endif
|
||||
|
||||
register_netdevice_notifier(&nfqnl_dev_notifier);
|
||||
|
|
Loading…
Reference in a new issue