diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-02-06 10:15:55 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-06 10:15:55 -0600 |
| commit | 92288c9069664930accec6acd0b9c3b6cb42848b (patch) | |
| tree | 798b47883e4f6ba0bf26217f24469839e98483e3 /bgpd/bgp_fsm.c | |
| parent | 075f44a417dfd8e025945cfc26cfd4b11b5c361b (diff) | |
| parent | 19af3f3d7af0f8904794dae3c36f60ed1d5a3cc8 (diff) | |
Merge pull request #17865 from donaldsharp/coverity_2024_new_hotness
Coverity 2024 new hotness
Diffstat (limited to 'bgpd/bgp_fsm.c')
| -rw-r--r-- | bgpd/bgp_fsm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index c7b7f9e284..c7a4c6928a 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -525,8 +525,9 @@ static void bgp_holdtime_timer(struct event *thread) * for systems where we are heavily loaded for one * reason or another. */ - inq_count = atomic_load_explicit(&connection->ibuf->count, - memory_order_relaxed); + frr_with_mutex (&connection->io_mtx) { + inq_count = atomic_load_explicit(&connection->ibuf->count, memory_order_relaxed); + } if (inq_count) BGP_TIMER_ON(connection->t_holdtime, bgp_holdtime_timer, peer->v_holdtime); |
