From 9d1fec4c7e1770e83eecb304a0cd807cb41186e9 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 16 Jul 2022 19:00:43 -0400 Subject: [PATCH] zebra: When deleting nexthop group entries ensure the thread is off Signed-off-by: Donald Sharp --- zebra/zebra_nhg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 8a255981b7..f846164834 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -1611,6 +1611,8 @@ void zebra_nhg_free(struct nhg_hash_entry *nhe) nhe->nhg.nexthop); } + THREAD_OFF(nhe->timer); + if (nhe->refcnt) zlog_debug("nhe_id=%pNG hash refcnt=%d", nhe, nhe->refcnt); -- 2.39.5