]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0102-bonding-debugfs-and-network-namespaces-are-incompati.patch
linux-ti33x-psp 3.2: update to 3.2.25
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.24 / 0102-bonding-debugfs-and-network-namespaces-are-incompati.patch
1 From 4def3e67f9744a1010a27b55034269076ea6cffc Mon Sep 17 00:00:00 2001
2 From: "Eric W. Biederman" <ebiederm@xmission.com>
3 Date: Mon, 9 Jul 2012 10:52:43 +0000
4 Subject: [PATCH 102/109] bonding: debugfs and network namespaces are
5  incompatible
7 commit 96ca7ffe748bf91f851e6aa4479aa11c8b1122ba upstream.
9 The bonding debugfs support has been broken in the presence of network
10 namespaces since it has been added.  The debugfs support does not handle
11 multiple bonding devices with the same name in different network
12 namespaces.
14 I haven't had any bug reports, and I'm not interested in getting any.
15 Disable the debugfs support when network namespaces are enabled.
17 Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
18 Signed-off-by: David S. Miller <davem@davemloft.net>
19 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
20 ---
21  drivers/net/bonding/bond_debugfs.c |    2 +-
22  1 files changed, 1 insertions(+), 1 deletions(-)
24 diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c
25 index 3680aa2..2cf084e 100644
26 --- a/drivers/net/bonding/bond_debugfs.c
27 +++ b/drivers/net/bonding/bond_debugfs.c
28 @@ -6,7 +6,7 @@
29  #include "bonding.h"
30  #include "bond_alb.h"
31  
32 -#ifdef CONFIG_DEBUG_FS
33 +#if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_NET_NS)
34  
35  #include <linux/debugfs.h>
36  #include <linux/seq_file.h>
37 -- 
38 1.7.7.6