]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/x25/x25_dev.c
ALSA: Fix a Oops bug in omap soc driver.
[linux-2.6-omap-h63xx.git] / net / x25 / x25_dev.c
index 3ff206c0ae945759e1e38fd4b287fb966a0354e1..3e1efe53464598b6040fb046a6a073b9622d7122 100644 (file)
@@ -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);