datapath: Fix a kernel crash when adding a 2nd VXLAN port with existing UDP port
[sliver-openvswitch.git] / datapath / vport-vxlan.c
index a2cbeb9..f72b95f 100644 (file)
@@ -267,6 +267,7 @@ static int vxlan_tunnel_setup(struct net *net, struct nlattr *options,
        if (vxlan_port) {
                vxlan_port->count++;
                err = 0;
+               *vxport = vxlan_port;
                goto out;
        }