diff options
| author | Pat Ruddy <pat@voltanet.io> | 2020-12-04 12:16:32 +0000 |
|---|---|---|
| committer | Pat Ruddy <pat@voltanet.io> | 2021-01-04 14:29:44 +0000 |
| commit | 331bd0ebad60cee233eb5c95c658fda67cd45bb9 (patch) | |
| tree | a442391f0991891fd35ed1f0f6342e101a3729e2 | |
| parent | e3ea65039e8e17144e0cb91d9c93d4fc3f949e1d (diff) | |
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 <pat@voltanet.io>
| -rw-r--r-- | bgpd/bgp_labelpool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_labelpool.c b/bgpd/bgp_labelpool.c index c191165ef9..4386ef69cd 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; } |
