aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pppoe.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-01-21 18:55:40 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 18:55:40 -0500
commitf5882c30508c1e3c4fbbdaa9ca08d0922c5fb071 (patch)
tree54522f9e2fe8d88221364c8b3edaa7215c7d48ed /drivers/net/pppoe.c
parent273ec51dd7ceaa76e038875d85061ec856d8905e (diff)
net: pppoe,pppol2tp - register channels with explicit net
In PPPo[E|L2TP] we could explicitly point which net namespace we're going to use for channels - make it so. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: James Chapman <jchapman@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r--drivers/net/pppoe.c2
1 files changed, 1 insertions, 1 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