]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipx/af_ipx.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / net / ipx / af_ipx.c
index f7b4d383c60958a8daebc38c1188cfacc69254ef..24921f12e9af21863fb7aa7144ae946f541d50a7 100644 (file)
@@ -347,6 +347,9 @@ static int ipxitf_device_event(struct notifier_block *notifier,
        struct net_device *dev = ptr;
        struct ipx_interface *i, *tmp;
 
+       if (dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        if (event != NETDEV_DOWN && event != NETDEV_UP)
                goto out;