gtp: delay initialization if compiled built-in

Make sure the IPv4/IPv6 sockets are ready to be used before gtp needs
them.
This commit is contained in:
Pablo Neira Ayuso 2014-02-21 15:23:47 +01:00
parent dd9a15af4d
commit 1b00243775
1 changed files with 1 additions and 2 deletions

3
gtp.c
View File

@ -1303,6 +1303,7 @@ err1:
genl_unregister_family(&gtp_genl_family); genl_unregister_family(&gtp_genl_family);
return err; return err;
} }
late_initcall(gtp_init);
static void __exit gtp_fini(void) static void __exit gtp_fini(void)
{ {
@ -1312,8 +1313,6 @@ static void __exit gtp_fini(void)
pr_info("GTP module unloaded\n"); pr_info("GTP module unloaded\n");
} }
module_init(gtp_init);
module_exit(gtp_fini); module_exit(gtp_fini);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");