ovs/gre,geneve: fix error path when creating an iface
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 13 Jun 2016 08:31:04 +0000 (10:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2016 05:21:44 +0000 (22:21 -0700)
commit106da663ff495e0aea3ac15b8317aa410754fcac
treec01437e026a5475c737599a67cccefaae45f2b56
parentd1e37288c9146dccff830e3253e403af8705b51f
ovs/gre,geneve: fix error path when creating an iface

After ipgre_newlink()/geneve_configure() call, the netdev is registered.

Fixes: 7e059158d57b ("vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices")
CC: David Wragg <david@weave.works>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c
net/ipv4/ip_gre.c