netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rtnl_newlink() cleanup on namespace change
@ 2015-03-10 22:43 David Miller
  2015-03-10 23:44 ` Cong Wang
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2015-03-10 22:43 UTC (permalink / raw)
  To: netdev; +Cc: xiyou.wangcong


Cong, I was reviewing commit 7afb8886a05be68e376655539a064ec672de8a8e
("rtnetlink: call ->dellink on failure when ->newlink exists") during
a stable backport and I noticed that the function, after the change
you made, subsequently goes:

		if (link_net) {
			err = dev_change_net_namespace(dev, dest_net, ifname);
			if (err < 0)
				unregister_netdevice(dev);
		}

Isn't the potential ->dellink() unwinding necessary in this path too?

If not, why not?

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-11 16:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 22:43 rtnl_newlink() cleanup on namespace change David Miller
2015-03-10 23:44 ` Cong Wang
2015-03-11  2:00   ` David Miller
2015-03-11 16:35     ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).