]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/decnet/af_decnet.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / net / decnet / af_decnet.c
index aca4c4930eb6aaaac698582416026327a20ad175..83398da5d7636bd1455ac464f788c4efd3860a45 100644 (file)
@@ -2089,6 +2089,9 @@ static int dn_device_event(struct notifier_block *this, unsigned long event,
 {
        struct net_device *dev = (struct net_device *)ptr;
 
+       if (dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        switch(event) {
                case NETDEV_UP:
                        dn_dev_up(dev);