]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: use the right netns in ioctl handler
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 16 Apr 2014 09:19:34 +0000 (11:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Apr 2014 19:16:02 +0000 (15:16 -0400)
commite890f53465ba62b03a1621f053f6cbe8a31e1aa6
treecb101fb876cb4257104bd2924f4238ea1c1db230
parent436be04c9d678a7928654c03e264f9b3ce0f5930
ip6_tunnel: use the right netns in ioctl handler

Because the netdevice may be in another netns than the i/o netns, we should
use the i/o netns instead of dev_net(dev).

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c