]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: fix hlist corruption
authorJiri Benc <jbenc@redhat.com>
Sun, 2 Jul 2017 17:00:58 +0000 (19:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jul 2017 09:36:27 +0000 (02:36 -0700)
commit41fa98a93b46202827d68de7c4daf33f4bfcc2d0
treed619f4433dc26c960bb92c57add6f7eb591330bf
parent05746fc02fb910adbbb8c78bd5d938f0f7304fd5
geneve: 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: afdab7faded4 ("geneve: implement support for IPv6-based tunnels")
Cc: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c