Messages in this thread | | | Date | Sun, 09 Mar 2014 19:09:41 -0400 (EDT) | Subject | Re: [PATCH] netlink: switch net_ns only if net is not init_net | From | David Miller <> |
| |
From: Gu Zheng <guz.fnst@cn.fujitsu.com> Date: Fri, 07 Mar 2014 18:47:30 +0800
> Many netlink users create netlink sock in the init_net, and the > switching nes_ns(init_net-->net) is needless in this case. So here > we add a pre-check to avoid this. > > Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
This check is more appropriately placed into sk_change_net() itself.
| |