aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2012-06-04 00:35:19 -0400
committerLen Brown <len.brown@intel.com>2012-06-04 00:35:19 -0400
commit7e1bd6e38b1f30860ce25a014c6d6adfb0079f4a (patch)
tree65c5898ba93007d4399150c7a127a670bcfbc30d /net/unix/sysctl_net_unix.c
parent301f33fbcf4ced53b3de114846ecece5d6aafeeb (diff)
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f (diff)
Merge branch 'upstream' into bugfix-video
Update bugfix-video branch to 2.5-rc1 so I don't have to again resolve the conflict in these patches vs. upstream. Conflicts: drivers/gpu/drm/gma500/psb_drv.c text conflict: add comment vs delete neighboring line keep just this: /* igd_opregion_init(&dev_priv->opregion_dev); */ /* acpi_video_register(); */ Signed-off-by: Len Brown <len.brown@intel.com>
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}