diff options
Diffstat (limited to 'drivers/net/pppol2tp.c')
-rw-r--r-- | drivers/net/pppol2tp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index 2eb424ba58e5..921d4ef6d14b 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c | |||
@@ -1411,12 +1411,12 @@ static struct proto pppol2tp_sk_proto = { | |||
1411 | 1411 | ||
1412 | /* socket() handler. Initialize a new struct sock. | 1412 | /* socket() handler. Initialize a new struct sock. |
1413 | */ | 1413 | */ |
1414 | static int pppol2tp_create(struct socket *sock) | 1414 | static int pppol2tp_create(struct net *net, struct socket *sock) |
1415 | { | 1415 | { |
1416 | int error = -ENOMEM; | 1416 | int error = -ENOMEM; |
1417 | struct sock *sk; | 1417 | struct sock *sk; |
1418 | 1418 | ||
1419 | sk = sk_alloc(PF_PPPOX, GFP_KERNEL, &pppol2tp_sk_proto, 1); | 1419 | sk = sk_alloc(net, PF_PPPOX, GFP_KERNEL, &pppol2tp_sk_proto, 1); |
1420 | if (!sk) | 1420 | if (!sk) |
1421 | goto out; | 1421 | goto out; |
1422 | 1422 | ||