]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS]: Fix get_net_ns_by_pid
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 27 Oct 2007 05:56:12 +0000 (22:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Oct 2007 05:56:12 +0000 (22:56 -0700)
commit00867873a81c4857051ff126d8e51e1c0f87a250
treeb18dc0cdbebe096bf2a07149b6904b8b55d0502d
parentccc8ec5eca33105e2a65dc870a6793de837e2bed
[NETNS]: Fix get_net_ns_by_pid

The pid namespace patches changed the semantics of
find_task_by_pid without breaking the compile resulting
in get_net_ns_by_pid doing the wrong thing.

So switch to using the intended find_task_by_vpid.

Combined with Denis' earlier patch to make netlink traffic
fully synchronous the inadvertent race I introduced with
accessing current is actually removed.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c