]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/rxrpc/af_rxrpc.c
net: use net_eq to compare nets
[net-next-2.6.git] / net / rxrpc / af_rxrpc.c
index f978d02a248adad9cb94bba9d1b026c9102a7957..287b1415cee93fae57a830fdd74ef9144b00c7d7 100644 (file)
@@ -616,7 +616,7 @@ static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
 
        _enter("%p,%d", sock, protocol);
 
-       if (net != &init_net)
+       if (!net_eq(net, &init_net))
                return -EAFNOSUPPORT;
 
        /* we support transport protocol UDP only */