vxlan: fix ovs support
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 13 Mar 2017 15:24:03 +0000 (16:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 23:03:42 +0000 (16:03 -0700)
commitc80498e36d4ef3e24599d363c622fbf22a1293cc
tree4f1a82c52d5cc1a70773564c19ceb02449b7cb24
parent91864f5852f9996210fad400cf70fb85af091243
vxlan: fix ovs support

The required changes in the function vxlan_dev_create() were missing
in commit 8bcdc4f3a20b.
The vxlan device is not registered anymore after this patch and the error
path causes an stack dump:
 WARNING: CPU: 3 PID: 1498 at net/core/dev.c:6713 rollback_registered_many+0x9d/0x3f0

Fixes: 8bcdc4f3a20b ("vxlan: add changelink support")
CC: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c