]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/bonding/bond_main.c
[NET]: Make packet reception network namespace safe
[linux-2.6-omap-h63xx.git] / drivers / net / bonding / bond_main.c
index 5de648f90a458106e406bf6881ab3b03344263e2..e4e5fdc0430b78514794469ff7c63a46988f33cb 100644 (file)
@@ -2458,6 +2458,9 @@ static int bond_arp_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
        unsigned char *arp_ptr;
        u32 sip, tip;
 
+       if (dev->nd_net != &init_net)
+               goto out;
+
        if (!(dev->priv_flags & IFF_BONDING) || !(dev->flags & IFF_MASTER))
                goto out;