net: use net_eq to compare nets
[linux-2.6-microblaze.git] / net / atm / svc.c
index c739507..66e1d9b 100644 (file)
@@ -655,7 +655,7 @@ static int svc_create(struct net *net, struct socket *sock, int protocol,
 {
        int error;
 
-       if (net != &init_net)
+       if (!net_eq(net, &init_net))
                return -EAFNOSUPPORT;
 
        sock->ops = &svc_proto_ops;