From: Cyrill Gorcunov Date: Mon, 16 Mar 2009 15:23:30 +0000 (+0100) Subject: net: sysctl_net - use net_eq to compare nets X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=81a1d3c31e3517f9939b3e04d21cf4a6b0997419;p=linux-2.6-omap-h63xx.git net: sysctl_net - use net_eq to compare nets Signed-off-by: Cyrill Gorcunov Acked-by: Daniel Lezcano Signed-off-by: Patrick McHardy --- diff --git a/net/sysctl_net.c b/net/sysctl_net.c index 972201cd5fa..0b15d7250c4 100644 --- a/net/sysctl_net.c +++ b/net/sysctl_net.c @@ -61,7 +61,7 @@ static struct ctl_table_root net_sysctl_root = { static int net_ctl_ro_header_perms(struct ctl_table_root *root, struct nsproxy *namespaces, struct ctl_table *table) { - if (namespaces->net_ns == &init_net) + if (net_eq(namespaces->net_ns, &init_net)) return table->mode; else return table->mode & ~0222;