]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS]: Don't panic on creating the namespace's loopback
authorPavel Emelyanov <xemul@openvz.org>
Mon, 15 Oct 2007 19:55:33 +0000 (12:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Oct 2007 19:55:33 +0000 (12:55 -0700)
commit5ff381a4371b1ba2a45f9e1bb72bb8954ffbb1ba
treeeac71d1bf5f7c07ebf4360fd9cd48d79cab402fd
parentc4394bb5e46e12a1defaef9e3ce70d1adb4579c3
[NETNS]: Don't panic on creating the namespace's loopback

When the loopback device is failed to initialize inside the new
namespaces, panic() is called. Do not do it when the namespace
in question is not the init_net.

Plus cleanup the error path a bit.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c