]> git.baikalelectronics.ru Git - kernel.git/commit
gtp: fix cross netns recv on gtp socket
authorAndreas Schultz <aschultz@tpip.net>
Fri, 27 Jan 2017 09:40:58 +0000 (10:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2017 15:39:09 +0000 (10:39 -0500)
commit2a432976051d7a44dabf1ac70d6e9390f31e01d2
tree1271f92f74eb06692fdc4699e48ef31c6083c5ec
parentbc68434efec2293aa8c97b4fd30776aebdf4b9a2
gtp: fix cross netns recv on gtp socket

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>
drivers/net/gtp.c