ip_vti: not register vti_ipip_handler twice
authorXin Long <lucien.xin@gmail.com>
Mon, 13 Jul 2020 07:42:36 +0000 (15:42 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 14 Jul 2020 09:45:18 +0000 (11:45 +0200)
commit55a48c7ec75ad8a1f4e39d271e2b5aee21150f65
treebe198676366a7318e1fa8961cfd47fe6fc141d1e
parent910a71ed772aac3bf228e8679f000b1505c287fb
ip_vti: not register vti_ipip_handler twice

An xfrm_tunnel object is linked into the list when registering,
so vti_ipip_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 xfrm_tunnel object to register
for AF_INET6.

Fixes: e6ce64570f24 ("ip_vti: support IPIP6 tunnel processing")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/ip_vti.c