]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - net/atm/svc.c
net: use net_eq to compare nets
[mirror_ubuntu-focal-kernel.git] / net / atm / svc.c
index c7395070ee780715d7181cbad05f8762a01555dd..66e1d9b3e5deee4a2793d1d064e5ee78f0a5dd81 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;