gtp: fix cross netns recv on gtp socket
authorAndreas Schultz <aschultz@tpip.net>
Fri, 27 Jan 2017 09:40:58 +0000 (10:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2017 21:01:54 +0000 (22:01 +0100)
commitc8d6f83d3b6e2a16d542d44e757c67a4bbb35a28
tree7c6333d31845557cc40efc0bc59a8b641a91cba2
parentd812be8288325ea28297e6bbbd8afb24b7d80f65
gtp: fix cross netns recv on gtp socket

[ Upstream commit 3ab1b469e847ba425af3c5ad5068cc94b55b38d0 ]

The use of the passed through netlink src_net to check for a
cross netns operation was wrong. Using the GTP socket and the
GTP netdevice is always correct (even if the netdev has been
moved to new netns after link creation).

Remove the now obsolete net field from gtp_dev.

Signed-off-by: Andreas Schultz <aschultz@tpip.net>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/gtp.c