]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
bonding: debugfs and network namespaces are incompatible
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 9 Jul 2012 10:52:43 +0000 (10:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 21:49:15 +0000 (14:49 -0700)
The bonding debugfs support has been broken in the presence of network
namespaces since it has been added.  The debugfs support does not handle
multiple bonding devices with the same name in different network
namespaces.

I haven't had any bug reports, and I'm not interested in getting any.
Disable the debugfs support when network namespaces are enabled.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_debugfs.c

index 3680aa251dea953d172e224a02b91b713f2dba22..2cf084eb9d524d995c4e3bf72a6d327e5f1ea9cb 100644 (file)
@@ -6,7 +6,7 @@
 #include "bonding.h"
 #include "bond_alb.h"
 
-#ifdef CONFIG_DEBUG_FS
+#if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_NET_NS)
 
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>