]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vti4: ipip tunnel deregistration fixes.
authorJeremy Sowden <jeremy@azazel.net>
Tue, 19 Mar 2019 15:39:20 +0000 (15:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:22:22 +0000 (18:22 +0200)
commit6c0db1cbf7724e62c888ab1aa21ca5c17c013b46
tree939b88d3afbf2f8216999686d25711b431863b95
parentf8a427ca50d6e22bf65d302ef7a502248a194fbc
vti4: ipip tunnel deregistration fixes.

[ Upstream commit 5483844c3fc18474de29f5d6733003526e0a9f78 ]

If tunnel registration failed during module initialization, the module
would fail to deregister the IPPROTO_COMP protocol and would attempt to
deregister the tunnel.

The tunnel was not deregistered during module-exit.

Fixes: dd9ee3444014e ("vti4: Fix a ipip packet processing bug in 'IPCOMP' virtual tunnel")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/ip_vti.c