X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fx25%2Fx25_dev.c;h=3e1efe53464598b6040fb046a6a073b9622d7122;hb=43caae884b5a5e2eacb4879225341cb49700e129;hp=3ff206c0ae945759e1e38fd4b287fb966a0354e1;hpb=ce1d5b23a8d1e19866ab82bdec0dc41fde5273d8;p=linux-2.6-omap-h63xx.git diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c index 3ff206c0ae9..3e1efe53464 100644 --- a/net/x25/x25_dev.c +++ b/net/x25/x25_dev.c @@ -95,7 +95,7 @@ int x25_lapb_receive_frame(struct sk_buff *skb, struct net_device *dev, struct sk_buff *nskb; struct x25_neigh *nb; - if (dev_net(dev) != &init_net) + if (!net_eq(dev_net(dev), &init_net)) goto drop; nskb = skb_copy(skb, GFP_ATOMIC);