]> 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)
commit43adde7cbed645291a3370f55ca7e2c9deeddee9
tree1271f92f74eb06692fdc4699e48ef31c6083c5ec
parentb4b4bd3bef505eb7dc46080b7d996f1c520bd262
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