driver: ipvlan: Unlink the upper dev when ipvlan_link_new failed
authorGao Feng <fgao@ikuai8.com>
Thu, 8 Dec 2016 03:16:58 +0000 (11:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 19:30:07 +0000 (14:30 -0500)
commit1a31cc86ef3ce9d873a713f422c34b47a188caec
treec6f57407f75fe9f8d27dc8428c440690e1f44ea1
parent93a97c50cbf1c007caf12db5cc23e0d5b9c8473c
driver: ipvlan: Unlink the upper dev when ipvlan_link_new failed

When netdev_upper_dev_unlink failed in ipvlan_link_new, need to
unlink the ipvlan dev with upper dev.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Acked-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_main.c