Skip to contentSkip to conversation

net/ipv6: Put lwtstate when destroying fib6_info

PATCH In review [email protected] 2 participants 2 messages Aug 20, 2018 – Aug 21, 2018

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 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")
---
 net/ipv6/ip6_fib.c | 2 ++
 1 file changed, 2 insertions(+)
net/ipv6/ip6_fib.c +2 -0
index d212738e9d10..c861a6d4671d 100644
@@ -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
maintainer
#1 lore raw

From: [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_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")

Applied and queued up for -stable, thanks David.