]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: add missing unlock of path_info
authorPat Ruddy <pat@voltanet.io>
Fri, 4 Dec 2020 12:16:32 +0000 (12:16 +0000)
committerPat Ruddy <pat@voltanet.io>
Mon, 4 Jan 2021 14:29:44 +0000 (14:29 +0000)
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>
bgpd/bgp_labelpool.c

index c191165ef9209d86d41230a70e0808c200bc98ff..4386ef69cdb50c24caa95110782b6dd094f073ba 100644 (file)
@@ -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;
                }