]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: use the right netns in ioctl handler
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 16 Apr 2014 09:19:32 +0000 (11:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Apr 2014 19:16:02 +0000 (15:16 -0400)
commit717353d9fd57c8aeab205e50c7bf5b14f3eb3db1
treea45ff5baecbf227b312cf57a53497facf19b49f1
parentf9da6f8a27881c6a35b3bc7f9c7f4eef65ce0422
ip_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).

The variable 'tunnel' was used only to get 'itn', hence to simplify code I
remove it and use 't' instead.

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