]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/appletalk/aarp.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / net / appletalk / aarp.c
index 9267f4818795d3d469f68b667c8ab0fe9792d592..e9a51a69870ef1b01f983241ac2188b4a3625696 100644 (file)
@@ -333,6 +333,9 @@ static int aarp_device_event(struct notifier_block *this, unsigned long event,
        struct net_device *dev = ptr;
        int ct;
 
+       if (dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        if (event == NETDEV_DOWN) {
                write_lock_bh(&aarp_lock);