diff options
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 1454afcc06c4..e18cd3628db4 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
| @@ -2197,7 +2197,11 @@ static void __exit af_unix_exit(void) | |||
| 2197 | unregister_pernet_subsys(&unix_net_ops); | 2197 | unregister_pernet_subsys(&unix_net_ops); |
| 2198 | } | 2198 | } |
| 2199 | 2199 | ||
| 2200 | module_init(af_unix_init); | 2200 | /* Earlier than device_initcall() so that other drivers invoking |
| 2201 | request_module() don't end up in a loop when modprobe tries | ||
| 2202 | to use a UNIX socket. But later than subsys_initcall() because | ||
| 2203 | we depend on stuff initialised there */ | ||
| 2204 | fs_initcall(af_unix_init); | ||
| 2201 | module_exit(af_unix_exit); | 2205 | module_exit(af_unix_exit); |
| 2202 | 2206 | ||
| 2203 | MODULE_LICENSE("GPL"); | 2207 | MODULE_LICENSE("GPL"); |
