mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
netfilter: nf_conntrack: Call nf_conntrack_standalone_init() early when CONFIG_INITCALL_ASYNC=y
nf_nat_amanda_init() depends on nf_conntrack_standalone_init() to init nf_ct_nat_helpers. But nf_nat_amanda_init() and nf_conntrack_standalone_init() are both in the same module_init level. Fix this by moving nf_conntrack_standalone_init() to the rootfs_initcall level. Change-Id: I2b5a9994f83581cdd819e19abe6cabc7b1d7b3af Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -1250,5 +1250,9 @@ static void __exit nf_conntrack_standalone_fini(void)
|
||||
nf_conntrack_cleanup_end();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(nf_conntrack_standalone_init);
|
||||
#else
|
||||
module_init(nf_conntrack_standalone_init);
|
||||
#endif
|
||||
module_exit(nf_conntrack_standalone_fini);
|
||||
|
||||
Reference in New Issue
Block a user