]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/ipv6: Put lwtstate when destroying fib6_info
authorDavid Ahern <dsahern@gmail.com>
Mon, 20 Aug 2018 20:02:41 +0000 (13:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:46:43 +0000 (09:46 +0200)
commit2ff8354c2317b8c50f5565230e3ca842c4aebb6c
tree96ecc8424c78baa6ba7272519255853d81caa6b1
parentb24b39afa4112eb4ecb236bc20785fa507c94888
net/ipv6: Put lwtstate when destroying fib6_info

[ Upstream commit 80f1a0f4e0cd4bfc8a74fc1c39843a6e7b206b95 ]

Prior to the introduction of fib6_info lwtstate was managed by the dst
code. With fib6_info releasing lwtstate needs to be done when the struct
is freed.

Fixes: 93531c674315 ("net/ipv6: separate handling of FIB entries from dst based routes")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_fib.c