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
This commit is contained in:
@ -346,8 +346,6 @@ proxy_try_delete_session (session_t * s, u8 is_active_open)
|
|||||||
/* Passive open already cleaned up */
|
/* Passive open already cleaned up */
|
||||||
if (ps->po.session_handle == SESSION_INVALID_HANDLE)
|
if (ps->po.session_handle == SESSION_INVALID_HANDLE)
|
||||||
{
|
{
|
||||||
ASSERT (s->rx_fifo->refcnt == 1);
|
|
||||||
|
|
||||||
/* The two sides of the proxy on different threads */
|
/* The two sides of the proxy on different threads */
|
||||||
if (ps->po.tx_fifo->master_thread_index != s->thread_index)
|
if (ps->po.tx_fifo->master_thread_index != s->thread_index)
|
||||||
{
|
{
|
||||||
@ -357,9 +355,12 @@ proxy_try_delete_session (session_t * s, u8 is_active_open)
|
|||||||
proxy_session_postponed_free (ps);
|
proxy_session_postponed_free (ps);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
ASSERT (s->rx_fifo->refcnt == 1);
|
||||||
proxy_session_free (ps);
|
proxy_session_free (ps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ps->po.session_handle = SESSION_INVALID_HANDLE;
|
ps->po.session_handle = SESSION_INVALID_HANDLE;
|
||||||
|
Reference in New Issue
Block a user