X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fatm%2Fpvc.c;h=43e8bf5ed0019ceceea7737bf7edbe983c4d8892;hb=63a16f90167850010864a9e8ebb71d216983090f;hp=848e6e191cc7179f30c3cfdcfb4007f53c5e8a85;hpb=b0138a6cb7923a997d278b47c176778534d1095b;p=linux-2.6 diff --git a/net/atm/pvc.c b/net/atm/pvc.c index 848e6e191c..43e8bf5ed0 100644 --- a/net/atm/pvc.c +++ b/net/atm/pvc.c @@ -124,10 +124,13 @@ static const struct proto_ops pvc_proto_ops = { }; -static int pvc_create(struct socket *sock,int protocol) +static int pvc_create(struct net *net, struct socket *sock,int protocol) { + if (net != &init_net) + return -EAFNOSUPPORT; + sock->ops = &pvc_proto_ops; - return vcc_create(sock, protocol, PF_ATMPVC); + return vcc_create(net, sock, protocol, PF_ATMPVC); }