From: David S. Miller Date: Wed, 11 Mar 2015 01:58:32 +0000 (-0400) Subject: net: Handle unregister properly when netdev namespace change fails. X-Git-Tag: omap-for-v4.1/fixes-rc1~306^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4363890079674db7b00cf1bb0e6fa430e846e86b;p=pandora-kernel.git 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 --- Reading git-diff-tree failed