diff options
Diffstat (limited to 'net/atm/common.c')
-rw-r--r-- | net/atm/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/common.c b/net/atm/common.c index 299ec1eb872a..e166d9e0ffd9 100644 --- a/net/atm/common.c +++ b/net/atm/common.c | |||
@@ -125,7 +125,7 @@ static struct proto vcc_proto = { | |||
125 | .obj_size = sizeof(struct atm_vcc), | 125 | .obj_size = sizeof(struct atm_vcc), |
126 | }; | 126 | }; |
127 | 127 | ||
128 | int vcc_create(struct socket *sock, int protocol, int family) | 128 | int vcc_create(struct net *net, struct socket *sock, int protocol, int family) |
129 | { | 129 | { |
130 | struct sock *sk; | 130 | struct sock *sk; |
131 | struct atm_vcc *vcc; | 131 | struct atm_vcc *vcc; |
@@ -133,7 +133,7 @@ int vcc_create(struct socket *sock, int protocol, int family) | |||
133 | sock->sk = NULL; | 133 | sock->sk = NULL; |
134 | if (sock->type == SOCK_STREAM) | 134 | if (sock->type == SOCK_STREAM) |
135 | return -EINVAL; | 135 | return -EINVAL; |
136 | sk = sk_alloc(family, GFP_KERNEL, &vcc_proto, 1); | 136 | sk = sk_alloc(net, family, GFP_KERNEL, &vcc_proto, 1); |
137 | if (!sk) | 137 | if (!sk) |
138 | return -ENOMEM; | 138 | return -ENOMEM; |
139 | sock_init_data(sock, sk); | 139 | sock_init_data(sock, sk); |