aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/pvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/atm/pvc.c')
-rw-r--r--net/atm/pvc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/atm/pvc.c b/net/atm/pvc.c
index 848e6e191cc7..43e8bf5ed001 100644
--- a/net/atm/pvc.c
+++ b/net/atm/pvc.c
@@ -124,10 +124,13 @@ static const struct proto_ops pvc_proto_ops = {
124}; 124};
125 125
126 126
127static int pvc_create(struct socket *sock,int protocol) 127static int pvc_create(struct net *net, struct socket *sock,int protocol)
128{ 128{
129 if (net != &init_net)
130 return -EAFNOSUPPORT;
131
129 sock->ops = &pvc_proto_ops; 132 sock->ops = &pvc_proto_ops;
130 return vcc_create(sock, protocol, PF_ATMPVC); 133 return vcc_create(net, sock, protocol, PF_ATMPVC);
131} 134}
132 135
133 136