diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index e4e1999d93f5..ada7302af59d 100644 --- a/net/ipv4/inet_diag.c +++ b/net/ipv4/inet_diag.c @@ -1480,7 +1480,11 @@ static void __exit inet_diag_exit(void) kfree(inet_diag_table); } +#ifdef CONFIG_INITCALL_ASYNC +rootfs_initcall(inet_diag_init); +#else module_init(inet_diag_init); +#endif module_exit(inet_diag_exit); MODULE_LICENSE("GPL"); MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_NETLINK, NETLINK_SOCK_DIAG, 2 /* AF_INET */);