]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ipip: fix wrong address family in init error path
authorVadim Fedorenko <vfedorenko@novek.ru>
Wed, 20 May 2020 08:50:48 +0000 (11:50 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:22:46 +0000 (08:22 +0200)
commit114d8728d855329760daaa7d38b2a643c0d971ef
tree7f1411816d54d0388be94a76188bb49950168914
parent4c87d3a151c3886a242474ec5a86ce7b1f857caf
net: ipip: fix wrong address family in init error path

[ Upstream commit 57ebc8f08504f176eb0f25b3e0fde517dec61a4f ]

In case of error with MPLS support the code is misusing AF_INET
instead of AF_MPLS.

Fixes: 1b69e7e6c4da ("ipip: support MPLS over IPv4")
Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ipip.c