]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/atm/clip.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / net / atm / clip.c
index 806ea98567c6fb2bf20d583198e94cfa5d5e4d41..741742f0079715604430491a71de39288e429ff0 100644 (file)
@@ -612,6 +612,9 @@ static int clip_device_event(struct notifier_block *this, unsigned long event,
 {
        struct net_device *dev = arg;
 
+       if (dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        if (event == NETDEV_UNREGISTER) {
                neigh_ifdown(&clip_tbl, dev);
                return NOTIFY_DONE;