commit | 4363890079674db7b00cf1bb0e6fa430e846e86b | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Tue Mar 10 21:58:32 2015 -0400 |
committer | David S. Miller <davem@davemloft.net> | Tue Mar 10 21:59:46 2015 -0400 |
tree | 0b7905168810419c0fb2aa8fbead213f546257d5 | |
parent | 7768eed8bf1d2e5eefa38c573f15f737a9824052 [diff] |
net: Handle unregister properly when netdev namespace change fails. If rtnl_newlink() fails on it's call to dev_change_net_namespace(), we have to make use of the ->dellink() method, if present, just like we do when rtnl_configure_link() fails. Fixes: 317f4810e45e ("rtnl: allow to create device with IFLA_LINK_NETNSID set") Signed-off-by: David S. Miller <davem@davemloft.net>