]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/appletalk/aarp.c
[NET]: Make packet reception network namespace safe
[linux-2.6-omap-h63xx.git] / net / appletalk / aarp.c
index 80b54148460f5614a8290f8edf655eaf5407a70d..9267f4818795d3d469f68b667c8ab0fe9792d592 100644 (file)
@@ -713,6 +713,9 @@ static int aarp_rcv(struct sk_buff *skb, struct net_device *dev,
        struct atalk_addr sa, *ma, da;
        struct atalk_iface *ifa;
 
+       if (dev->nd_net != &init_net)
+               goto out0;
+
        /* We only do Ethernet SNAP AARP. */
        if (dev->type != ARPHRD_ETHER)
                goto out0;