diff options
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
-rw-r--r-- | net/unix/sysctl_net_unix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/unix/sysctl_net_unix.c b/net/unix/sysctl_net_unix.c index eb0bd57ebada..b2e0407e1b7b 100644 --- a/net/unix/sysctl_net_unix.c +++ b/net/unix/sysctl_net_unix.c | |||
@@ -48,12 +48,13 @@ static ctl_table unix_root_table[] = { | |||
48 | 48 | ||
49 | static struct ctl_table_header * unix_sysctl_header; | 49 | static struct ctl_table_header * unix_sysctl_header; |
50 | 50 | ||
51 | void unix_sysctl_register(void) | 51 | int unix_sysctl_register(struct net *net) |
52 | { | 52 | { |
53 | unix_sysctl_header = register_sysctl_table(unix_root_table); | 53 | unix_sysctl_header = register_sysctl_table(unix_root_table); |
54 | return unix_sysctl_header == NULL ? -ENOMEM : 0; | ||
54 | } | 55 | } |
55 | 56 | ||
56 | void unix_sysctl_unregister(void) | 57 | void unix_sysctl_unregister(struct net *net) |
57 | { | 58 | { |
58 | unregister_sysctl_table(unix_sysctl_header); | 59 | unregister_sysctl_table(unix_sysctl_header); |
59 | } | 60 | } |