X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=drivers%2Fblock%2Faoe%2Faoenet.c;h=4dc0fb7da94b50dacbdb0084dc7f7f037f0db435;hb=e730c15519d09ea528b4d2f1103681fa5937c0e6;hp=f9ddfda4d9cb5945e3800e4a6865691e6069765f;hpb=6d34b1c27a72d5d1c73c567b2f6b1fde316e0eae;p=mirror_ubuntu-zesty-kernel.git diff --git a/drivers/block/aoe/aoenet.c b/drivers/block/aoe/aoenet.c index f9ddfda4d9cb..4dc0fb7da94b 100644 --- a/drivers/block/aoe/aoenet.c +++ b/drivers/block/aoe/aoenet.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include "aoe.h" @@ -114,6 +115,9 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, struct aoe_hdr *h; u32 n; + if (ifp->nd_net != &init_net) + goto exit; + skb = skb_share_check(skb, GFP_ATOMIC); if (skb == NULL) return 0;