Skip to content

Commit a8c5175

Browse files
authored
Merge pull request #17129 from FRRouting/mergify/bp/dev/10.2/pr-17116
zebra: unlock node only after operation in zebra_free_rnh() (backport #17116)
2 parents eb83a1f + 5aae058 commit a8c5175

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zebra/zebra_rnh.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,9 @@ void zebra_free_rnh(struct rnh *rnh)
220220
if (rern) {
221221
rib_dest_t *dest;
222222

223-
route_unlock_node(rern);
224-
225223
dest = rib_dest_from_rnode(rern);
226224
rnh_list_del(&dest->nht, rnh);
225+
route_unlock_node(rern);
227226
}
228227
}
229228
free_state(rnh->vrf_id, rnh->state, rnh->node);

0 commit comments

Comments
 (0)