Skip to content
Commit 43638900 authored by David S. Miller's avatar David S. Miller
Browse files

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: 317f4810

 ("rtnl: allow to create device with IFLA_LINK_NETNSID set")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7768eed8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment