You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net: bpfilter: Call bpfilter_sockopt_init() early when CONFIG_INITCALL_ASYNC=y
load_umh() depends on bpfilter_sockopt_init() to init bpfilter_ops. But load_umh() and bpfilter_sockopt_init() are both in the same module_init/device_initcall level. Fix this by moving bpfilter_sockopt_init() to the rootfs_initcall level. Change-Id: I454872cc8036cffa92d135cbdb2c50ad9bb52e77 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -77,4 +77,8 @@ static int __init bpfilter_sockopt_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(bpfilter_sockopt_init);
|
||||
#else
|
||||
device_initcall(bpfilter_sockopt_init);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user