Skip to content

Commit 80f1a0f

Browse files
dsaherndavem330
authored andcommitted
net/ipv6: Put lwtstate when destroying fib6_info
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: 93531c6 ("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>
1 parent 176eb61 commit 80f1a0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/ipv6/ip6_fib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ void fib6_info_destroy_rcu(struct rcu_head *head)
198198
}
199199
}
200200

201+
lwtstate_put(f6i->fib6_nh.nh_lwtstate);
202+
201203
if (f6i->fib6_nh.nh_dev)
202204
dev_put(f6i->fib6_nh.nh_dev);
203205

0 commit comments

Comments
 (0)