pptp: lookup route with the proper net namespace
authorGao feng <gaofeng@cn.fujitsu.com>
Tue, 7 Aug 2012 00:23:11 +0000 (00:23 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:04:48 +0000 (15:04 +0100)
commit3f37c3bd4cded42d856f5f9d40a830bfefa57b58
tree59bf96b35dbd86c92820b5ae81ef5434a804abd1
parent748b6a42291b23c24ed21f93598189c25d7ae513
pptp: lookup route with the proper net namespace

[ Upstream commit 08252b32311c3fa84219ad794d640af7399b5485 ]

pptp always use init_net as the net namespace to lookup
route, this will cause route lookup failed in container.

because we already set the correct net namespace to struct
sock in pptp_create,so fix this by using sock_net(sk) to
replace &init_net.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ppp/pptp.c