Skip to content

Commit 5a78a81

Browse files
dsahernPaolo Abeni
authored andcommitted
net/ipv6: Remove gc_link warn on in fib6_info_release
A revert of 3dec89b ("net/ipv6: Remove expired routes with a separated list of routes") was sent for net-next. Revert the remainder of 5a08d00 which added a warn on if a fib entry is still on the gc_link list to avoid compile failures when net is merged to net-next Signed-off-by: David Ahern <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 3ab5720 commit 5a78a81

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/net/ip6_fib.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,8 @@ static inline bool fib6_info_hold_safe(struct fib6_info *f6i)
328328

329329
static inline void fib6_info_release(struct fib6_info *f6i)
330330
{
331-
if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) {
332-
DEBUG_NET_WARN_ON_ONCE(!hlist_unhashed(&f6i->gc_link));
331+
if (f6i && refcount_dec_and_test(&f6i->fib6_ref))
333332
call_rcu(&f6i->rcu, fib6_info_destroy_rcu);
334-
}
335333
}
336334

337335
enum fib6_walk_state {

0 commit comments

Comments
 (0)