datapath: Fix a kernel crash when adding a 2nd VXLAN port with existing UDP port
authorKyle Mestery <kmestery@cisco.com>
Wed, 9 Jan 2013 19:47:41 +0000 (14:47 -0500)
committerJesse Gross <jesse@nicira.com>
Wed, 9 Jan 2013 20:04:15 +0000 (12:04 -0800)
commit3b6f2889400fd340b851c2d36356457559ae6e81
tree422227c3fdc1ed400855745085f06b15cea71a9c
parent7c33b18807804f1e0dfee809a373933fbfeb9a6d
datapath: Fix a kernel crash when adding a 2nd VXLAN port with existing UDP port

When creating a second VXLAN tunnel port with the same UDP
port as an existing VXLAN tunnel port, make sure to set
*vxport before returning. Fixes a kernel crash.

Reported-by: Todd Ruch <Todd.Ruch@wwtas.com>
Signed-off-by: Kyle Mestery <kmestery@cisco.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/vport-vxlan.c