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:
parent
dd9a15af4d
commit
1b00243775
3
gtp.c
3
gtp.c
|
@ -1303,6 +1303,7 @@ err1:
|
||||||
genl_unregister_family(>p_genl_family);
|
genl_unregister_family(>p_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");
|
||||||
|
|
Loading…
Reference in New Issue