X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fwan%2Fdlci.c;h=b14242768fad19c381cff1d3d232d4abcf5f7e24;hb=acee709cab689ec7703770e8b8cb5cc3a4abcb31;hp=96b232446c0b03533851be84da4b158e775f38a1;hpb=ebf8889bd1fe3615991ff4494635d237280652a2;p=linux-2.6 diff --git a/drivers/net/wan/dlci.c b/drivers/net/wan/dlci.c index 96b232446c..b14242768f 100644 --- a/drivers/net/wan/dlci.c +++ b/drivers/net/wan/dlci.c @@ -517,7 +517,7 @@ static int dlci_dev_event(struct notifier_block *unused, { struct net_device *dev = (struct net_device *) ptr; - if (dev->nd_net != &init_net) + if (dev_net(dev) != &init_net) return NOTIFY_DONE; if (event == NETDEV_UNREGISTER) {