X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=net%2Fx25%2Faf_x25.c;h=9fc5b023d1118a990944cbe32ff5ab2c81e07f5b;hb=721499e8931c5732202481ae24f2dfbf9910f129;hp=7b1c6ef04553602fdb156727e9bd10f8531b88d6;hpb=407d819cf0fd54c6fc1138a509225696aecafd15;p=pandora-kernel.git diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 7b1c6ef04553..9fc5b023d111 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c @@ -191,7 +191,7 @@ static int x25_device_event(struct notifier_block *this, unsigned long event, struct net_device *dev = ptr; struct x25_neigh *nb; - if (dev_net(dev) != &init_net) + if (!net_eq(dev_net(dev), &init_net)) return NOTIFY_DONE; if (dev->type == ARPHRD_X25