net/ipv6: Put lwtstate when destroying fib6_info
Subsystems (3)
[email protected]
maintainerPATCH 1/1 net/ipv6: Put lwtstate when destroying fib6_info
From: David Ahern <[email protected]>
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 <[email protected]>
--- net/ipv6/ip6_fib.c | 2 ++ 1 file changed, 2 insertions(+)
net/ipv6/ip6_fib.c +2 -0
@@ -198,6 +198,8 @@ void fib6_info_destroy_rcu(struct rcu_head *head) } } +lwtstate_put (f6i->fib6_nh.nh_lwtstate); +if (f6i->fib6_nh.nh_dev)dev_put (f6i->fib6_nh.nh_dev);
Signature · 1 line
2.11.0
David Miller
maintainerFrom: [email protected]
Date: Mon, 20 Aug 2018 13:02:41 -0700
Quoted 8 lines
From: David Ahern <[email protected]>
Prior to the introduction of
fib6_infolwtstate was managed by the dst code. Withfib6_inforeleasing 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 <[email protected]>
Applied and queued up for -stable, thanks David.