]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix hlist corruption
authorJiri Benc <jbenc@redhat.com>
Sun, 2 Jul 2017 17:00:57 +0000 (19:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jul 2017 09:36:27 +0000 (02:36 -0700)
commit05746fc02fb910adbbb8c78bd5d938f0f7304fd5
tree7ef24b9e346f32e0c16ebd8ada4c4ed22a18c647
parent0b68386d98d1aaf65f73a27045858650e2bd76b6
vxlan: fix hlist corruption

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: 8bc7d56f5546 ("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>
drivers/net/vxlan.c
include/net/vxlan.h