vxlan: fix hlist corruption
authorJiri Benc <jbenc@redhat.com>
Sun, 2 Jul 2017 17:00:57 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 04:59:04 +0000 (06:59 +0200)
commitb7b3a67ebd764c0008e304660a2fd3e5f20f2b86
tree6b36a10e666d2345f1a12a0e78facc5efa26a58b
parent55db4f9f0106009f9f890df5eea4caef0cb7ae2f
vxlan: fix hlist corruption

[ Upstream commit 69e766612c4bcb79e19cebed9eed61d4222c1d47 ]

It's not a good idea to add the same hlist_node to two different hash lists.
This leads to various hard to debug memory corruptions.

Fixes: b1be00a6c39f ("vxlan: support both IPv4 and IPv6 sockets in a single vxlan device")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c
include/net/vxlan.h