mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
net: socket: Call sock_init() early when CONFIG_INITCALL_ASYNC=y
netlink_proto_init() depends on sock_init() to init sock_mnt. But netlink_proto_init() and sock_init() are both in the same core_initcall level. Fix this by moving sock_init() to the pure_initcall level. Change-Id: I201d52a23f17e895ee9e961514f9a6b42f96cd40 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -3243,7 +3243,11 @@ out_mount:
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
pure_initcall(sock_init); /* early initcall */
|
||||
#else
|
||||
core_initcall(sock_init); /* early initcall */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
void socket_seq_show(struct seq_file *seq)
|
||||
|
||||
Reference in New Issue
Block a user