aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-07-25 01:43:04 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-07-25 01:43:04 -0400
commit314820c9e892d8f41ba4db300ec96770d9c8294b (patch)
tree3d5c59a429239b180c77e57f998a78d3f2b79827 /net/unix/sysctl_net_unix.c
parente76b8ee25e034ab601b525abb95cea14aa167ed3 (diff)
parent07b8481d4aff73d6f451f25e74ea10240ff5131e (diff)
Merge branch 'next' into for-linus
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
-rw-r--r--net/unix/sysctl_net_unix.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/net/unix/sysctl_net_unix.c b/net/unix/sysctl_net_unix.c
index 397cffebb3b6..b34b5b9792f0 100644
--- a/net/unix/sysctl_net_unix.c
+++ b/net/unix/sysctl_net_unix.c
@@ -26,12 +26,6 @@ static ctl_table unix_table[] = {
26 { } 26 { }
27}; 27};
28 28
29static struct ctl_path unix_path[] = {
30 { .procname = "net", },
31 { .procname = "unix", },
32 { },
33};
34
35int __net_init unix_sysctl_register(struct net *net) 29int __net_init unix_sysctl_register(struct net *net)
36{ 30{
37 struct ctl_table *table; 31 struct ctl_table *table;
@@ -41,7 +35,7 @@ int __net_init unix_sysctl_register(struct net *net)
41 goto err_alloc; 35 goto err_alloc;
42 36
43 table[0].data = &net->unx.sysctl_max_dgram_qlen; 37 table[0].data = &net->unx.sysctl_max_dgram_qlen;
44 net->unx.ctl = register_net_sysctl_table(net, unix_path, table); 38 net->unx.ctl = register_net_sysctl(net, "net/unix", table);
45 if (net->unx.ctl == NULL) 39 if (net->unx.ctl == NULL)
46 goto err_reg; 40 goto err_reg;
47 41
@@ -58,6 +52,6 @@ void unix_sysctl_unregister(struct net *net)
58 struct ctl_table *table; 52 struct ctl_table *table;
59 53
60 table = net->unx.ctl->ctl_table_arg; 54 table = net->unx.ctl->ctl_table_arg;
61 unregister_sysctl_table(net->unx.ctl); 55 unregister_net_sysctl_table(net->unx.ctl);
62 kfree(table); 56 kfree(table);
63} 57}