]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/hamradio/bpqether.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / drivers / net / hamradio / bpqether.c
index 85fb8e7efacf0a2bdbf127a10510f342c01f788c..df09210f7351ff03a681898c3ed10a1e829fea1b 100644 (file)
@@ -563,6 +563,9 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi
 {
        struct net_device *dev = (struct net_device *)ptr;
 
+       if (dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        if (!dev_is_ethdev(dev))
                return NOTIFY_DONE;