aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/af_inet6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/af_inet6.c')
-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 3e2ddfaee81a..fbf533cc9dce 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -1202,6 +1202,9 @@ module_init(inet6_init);
1202 1202
1203static void __exit inet6_exit(void) 1203static void __exit inet6_exit(void)
1204{ 1204{
1205 if (disable_ipv6)
1206 return;
1207
1205 /* First of all disallow new sockets creation. */ 1208 /* First of all disallow new sockets creation. */
1206 sock_unregister(PF_INET6); 1209 sock_unregister(PF_INET6);
1207 /* Disallow any further netlink messages */ 1210 /* Disallow any further netlink messages */