]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/appletalk/ddp.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / net / appletalk / ddp.c
index c1f1367cad483c5eba04f72a4d14938b9e9cdf7c..36fcdbf923c4362e457141a19fe9827b3abd333c 100644 (file)
@@ -649,6 +649,9 @@ static int ddp_device_event(struct notifier_block *this, unsigned long event,
 {
        struct net_device *dev = ptr;
 
+       if (dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        if (event == NETDEV_DOWN)
                /* Discard any use of this */
                atalk_dev_down(dev);