]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/ax25/af_ax25.c
net: use net_eq to compare nets
[mv-sheeva.git] / net / ax25 / af_ax25.c
index d6ddfa4c4471fad58183e520c7e05b1c5ec69081..5588ba69c468ea4530c74fa2500afc7fd17c72e5 100644 (file)
@@ -805,7 +805,7 @@ static int ax25_create(struct net *net, struct socket *sock, int protocol,
        struct sock *sk;
        ax25_cb *ax25;
 
-       if (net != &init_net)
+       if (!net_eq(net, &init_net))
                return -EAFNOSUPPORT;
 
        switch (sock->type) {