diff options
Diffstat (limited to 'net/tipc/core.c')
-rw-r--r-- | net/tipc/core.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c index 674bd2698528..935205e6bcfe 100644 --- a/net/tipc/core.c +++ b/net/tipc/core.c | |||
@@ -39,7 +39,8 @@ | |||
39 | #include "core.h" | 39 | #include "core.h" |
40 | #include "name_table.h" | 40 | #include "name_table.h" |
41 | #include "subscr.h" | 41 | #include "subscr.h" |
42 | #include "config.h" | 42 | #include "bearer.h" |
43 | #include "net.h" | ||
43 | #include "socket.h" | 44 | #include "socket.h" |
44 | 45 | ||
45 | #include <linux/module.h> | 46 | #include <linux/module.h> |
@@ -111,6 +112,10 @@ static int __init tipc_init(void) | |||
111 | if (err) | 112 | if (err) |
112 | goto out_netlink; | 113 | goto out_netlink; |
113 | 114 | ||
115 | err = tipc_netlink_compat_start(); | ||
116 | if (err) | ||
117 | goto out_netlink_compat; | ||
118 | |||
114 | err = tipc_socket_init(); | 119 | err = tipc_socket_init(); |
115 | if (err) | 120 | if (err) |
116 | goto out_socket; | 121 | goto out_socket; |
@@ -136,6 +141,8 @@ out_pernet: | |||
136 | out_sysctl: | 141 | out_sysctl: |
137 | tipc_socket_stop(); | 142 | tipc_socket_stop(); |
138 | out_socket: | 143 | out_socket: |
144 | tipc_netlink_compat_stop(); | ||
145 | out_netlink_compat: | ||
139 | tipc_netlink_stop(); | 146 | tipc_netlink_stop(); |
140 | out_netlink: | 147 | out_netlink: |
141 | pr_err("Unable to start in single node mode\n"); | 148 | pr_err("Unable to start in single node mode\n"); |
@@ -146,6 +153,7 @@ static void __exit tipc_exit(void) | |||
146 | { | 153 | { |
147 | tipc_bearer_cleanup(); | 154 | tipc_bearer_cleanup(); |
148 | tipc_netlink_stop(); | 155 | tipc_netlink_stop(); |
156 | tipc_netlink_compat_stop(); | ||
149 | tipc_socket_stop(); | 157 | tipc_socket_stop(); |
150 | tipc_unregister_sysctl(); | 158 | tipc_unregister_sysctl(); |
151 | unregister_pernet_subsys(&tipc_net_ops); | 159 | unregister_pernet_subsys(&tipc_net_ops); |