macvlan: unregister net device when netdev_upper_dev_link() fails
authorCong Wang <cwang@twopensource.com>
Tue, 11 Feb 2014 23:51:29 +0000 (15:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 22:08:28 +0000 (17:08 -0500)
commitda37705cef30841616ed644ff33455bbc7374db0
treec437ce711eb9d8fa5b3f90007655743b04f30471
parent64380a04deeed4720de76b086a3a4eab8dd41671
macvlan: unregister net device when netdev_upper_dev_link() fails

rtnl_newlink() doesn't unregister it for us on failure.

Cc: Patrick McHardy <kaber@trash.net>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c