]> git.baikalelectronics.ru Git - kernel.git/commit
rtnl: fix error path when adding an iface with a link net
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 20 Jan 2015 14:15:42 +0000 (15:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Jan 2015 01:51:14 +0000 (17:51 -0800)
commit01f8e06f7e5978ebee72a23b6464ab05bcbd7477
tree52d3509eb43202c94e050351dcea588054e5c16d
parentafea80992d2cff8e4136d12964b1eda9b3daf10a
rtnl: fix error path when adding an iface with a link net

If an error occurs when the netdevice is moved to the link netns, a full cleanup
must be done.

Fixes: a6f62c7ff286 ("rtnl: allow to create device with IFLA_LINK_NETNSID set")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c