From 331bd0ebad60cee233eb5c95c658fda67cd45bb9 Mon Sep 17 00:00:00 2001 From: Pat Ruddy Date: Fri, 4 Dec 2020 12:16:32 +0000 Subject: [PATCH] bgpd: add missing unlock of path_info when the path info information is queued on the work queue it is protected by a lock to avoid the rug being pulled whilst it resides on the queue add an unlock in the error case where we do no queue the reference to the workqueue. Signed-off-by: Pat Ruddy --- bgpd/bgp_labelpool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpd/bgp_labelpool.c b/bgpd/bgp_labelpool.c index c191165ef..4386ef69c 100644 --- a/bgpd/bgp_labelpool.c +++ b/bgpd/bgp_labelpool.c @@ -461,6 +461,9 @@ void bgp_lp_event_chunk(uint8_t keep, uint32_t first, uint32_t last) zlog_debug("%s: labelid %p: request no longer in effect", __func__, labelid); } + /* if this was a BGP_LU request, unlock path info node + */ + check_bgp_lu_cb_unlock(lcb); goto finishedrequest; }