Skip to content

Commit

Permalink
netfilter: nfnetlink_queue: fix error return code in nfnetlink_queue_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Wei Yongjun authored and Pablo Neira Ayuso committed Mar 25, 2013
1 parent 130549f commit 558724a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/netfilter/nfnetlink_queue_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 558724a

Please sign in to comment.