summaryrefslogtreecommitdiffstats
path: root/drivers/net/via-velocity.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-02-28 20:46:17 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-28 20:46:17 -0800
commit6133fb1aa137b35a8fa91ec17977ebf6a41456ec (patch)
tree5bd2411fa97f9712f25ee95053a242db025b209c /drivers/net/via-velocity.c
parent6fc68624e524014fcd95faf726f855eb348f2e87 (diff)
downloadop-kernel-dev-6133fb1aa137b35a8fa91ec17977ebf6a41456ec.zip
op-kernel-dev-6133fb1aa137b35a8fa91ec17977ebf6a41456ec.tar.gz
[NETNS]: Disable inetaddr notifiers in namespaces other than initial.
ip_fib_init is kept enabled. It is already namespace-aware. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/via-velocity.c')
-rw-r--r--drivers/net/via-velocity.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index c50fdee..1525e8a 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -3464,6 +3464,9 @@ static int velocity_netdev_event(struct notifier_block *nb, unsigned long notifi
struct velocity_info *vptr;
unsigned long flags;
+ if (dev->nd_net != &init_net)
+ return NOTIFY_DONE;
+
spin_lock_irqsave(&velocity_dev_list_lock, flags);
list_for_each_entry(vptr, &velocity_dev_list, list) {
if (vptr->dev == dev) {
OpenPOWER on IntegriCloud