]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ia64/hp/sim/simeth.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / arch / ia64 / hp / sim / simeth.c
index 4017696ada637d0633998daf750a668336b5189c..08b117e2c54bdade231aa96c29cac4f4ce1bc728 100644 (file)
@@ -294,6 +294,9 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
                return NOTIFY_DONE;
        }
 
+       if (dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        if ( event != NETDEV_UP && event != NETDEV_DOWN ) return NOTIFY_DONE;
 
        /*