aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2024-11-07 13:44:02 -0800
committerFlorin Coras <fcoras@cisco.com>2024-11-07 13:44:02 -0800
commit7fdb6f4ba8dd7f934d2eb212b478086565d3d807 (patch)
tree180e1227318d3facf1ff85c0244b8453e6f49d27 /src/plugins
parent99eed5ec6452e7d528144ffbb252ccda21e92dad (diff)
hsa: proxy fix assert placement
Assert fifo refcnt on the right thread Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: If6edf9969f5c70533a1e9c6358c022c556c4ed81
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/hs_apps/proxy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/hs_apps/proxy.c b/src/plugins/hs_apps/proxy.c
index 0d24ebc6525..7079da5eb94 100644
--- a/src/plugins/hs_apps/proxy.c
+++ b/src/plugins/hs_apps/proxy.c
@@ -346,8 +346,6 @@ proxy_try_delete_session (session_t * s, u8 is_active_open)
/* Passive open already cleaned up */
if (ps->po.session_handle == SESSION_INVALID_HANDLE)
{
- ASSERT (s->rx_fifo->refcnt == 1);
-
/* The two sides of the proxy on different threads */
if (ps->po.tx_fifo->master_thread_index != s->thread_index)
{
@@ -357,7 +355,10 @@ proxy_try_delete_session (session_t * s, u8 is_active_open)
proxy_session_postponed_free (ps);
}
else
- proxy_session_free (ps);
+ {
+ ASSERT (s->rx_fifo->refcnt == 1);
+ proxy_session_free (ps);
+ }
}
}
else