OSDN Git Service

ip6_vti: not register vti_ipv6_handler twice
authorXin Long <lucien.xin@gmail.com>
Mon, 13 Jul 2020 07:42:37 +0000 (15:42 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 14 Jul 2020 09:46:07 +0000 (11:46 +0200)
commita8757147905ea5adee78c7a813fc080a4124f248
tree423170649987c68860354c2ab7243830f8ae4769
parent55a48c7ec75ad8a1f4e39d271e2b5aee21150f65
ip6_vti: not register vti_ipv6_handler twice

An xfrm6_tunnel object is linked into the list when registering,
so vti_ipv6_handler can not be registered twice, otherwise its
next pointer will be overwritten on the second time.

So this patch is to define a new xfrm6_tunnel object to register
for AF_INET.

Fixes: 2ab110cbb0c0 ("ip6_vti: support IP6IP tunnel processing")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/ip6_vti.c