diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/pppoe.c | 2 | ||||
-rw-r--r-- | drivers/net/pppol2tp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index fb3056334aac..39f3e21647e7 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c | |||
@@ -695,7 +695,7 @@ static int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr, | |||
695 | po->chan.private = sk; | 695 | po->chan.private = sk; |
696 | po->chan.ops = &pppoe_chan_ops; | 696 | po->chan.ops = &pppoe_chan_ops; |
697 | 697 | ||
698 | error = ppp_register_channel(&po->chan); | 698 | error = ppp_register_net_channel(dev_net(dev), &po->chan); |
699 | if (error) | 699 | if (error) |
700 | goto err_put; | 700 | goto err_put; |
701 | 701 | ||
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index f3f9cb1f77c0..056e22a784b8 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c | |||
@@ -1749,7 +1749,7 @@ static int pppol2tp_connect(struct socket *sock, struct sockaddr *uservaddr, | |||
1749 | po->chan.ops = &pppol2tp_chan_ops; | 1749 | po->chan.ops = &pppol2tp_chan_ops; |
1750 | po->chan.mtu = session->mtu; | 1750 | po->chan.mtu = session->mtu; |
1751 | 1751 | ||
1752 | error = ppp_register_channel(&po->chan); | 1752 | error = ppp_register_net_channel(sock_net(sk), &po->chan); |
1753 | if (error) | 1753 | if (error) |
1754 | goto end_put_tun; | 1754 | goto end_put_tun; |
1755 | 1755 | ||