]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Avoid going through ->sk_net to access the netns
authorJakub Sitnicki <jkbs@redhat.com>
Mon, 31 Jul 2017 08:09:41 +0000 (10:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Aug 2017 01:01:33 +0000 (18:01 -0700)
commitda93f9b2cce69c5887124a08df14bd0f6919ab10
tree92e16f99915b618181b4b7b4a9642b81f6ad1cdc
parent5ce0e1716ece1e8ad1f30cbcccc275d586dec47c
ipv6: Avoid going through ->sk_net to access the netns

There is no need to go through sk->sk_net to access the net namespace
and its sysctl variables because we allocate the sock and initialize
sk_net just a few lines earlier in the same routine.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/af_inet6.c