aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/af_inet6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index da944eca2ca6..9c8309ed35cf 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -1192,6 +1192,9 @@ module_init(inet6_init);
1192 1192
1193static void __exit inet6_exit(void) 1193static void __exit inet6_exit(void)
1194{ 1194{
1195 if (disable_ipv6)
1196 return;
1197
1195 /* First of all disallow new sockets creation. */ 1198 /* First of all disallow new sockets creation. */
1196 sock_unregister(PF_INET6); 1199 sock_unregister(PF_INET6);
1197 /* Disallow any further netlink messages */ 1200 /* Disallow any further netlink messages */