qcacmn: Change to store peer_id locally and use
Get peer_id from peer structure to a local variable and pass to hal api in order to avoid race condition between peer delete and peer unmap. Change-Id: Ib6a89f1defcfc8f66c1146a330a373a760520aa7 CRs-Fixed: 3444998
This commit is contained in:

committed by
Madan Koyyalamudi

parent
6f685b0907
commit
543c9847e4
@@ -2442,15 +2442,18 @@ void dp_peer_rx_reo_shared_qaddr_delete(struct dp_soc *soc,
|
|||||||
struct dp_peer *peer)
|
struct dp_peer *peer)
|
||||||
{
|
{
|
||||||
uint8_t tid;
|
uint8_t tid;
|
||||||
|
uint16_t peer_id;
|
||||||
|
|
||||||
if (peer->peer_id > soc->max_peer_id)
|
peer_id = peer->peer_id;
|
||||||
|
|
||||||
|
if (peer_id > soc->max_peer_id)
|
||||||
return;
|
return;
|
||||||
if (IS_MLO_DP_LINK_PEER(peer))
|
if (IS_MLO_DP_LINK_PEER(peer))
|
||||||
return;
|
return;
|
||||||
if (hal_reo_shared_qaddr_is_enable(soc->hal_soc)) {
|
if (hal_reo_shared_qaddr_is_enable(soc->hal_soc)) {
|
||||||
for (tid = 0; tid < DP_MAX_TIDS; tid++)
|
for (tid = 0; tid < DP_MAX_TIDS; tid++)
|
||||||
hal_reo_shared_qaddr_write(soc->hal_soc,
|
hal_reo_shared_qaddr_write(soc->hal_soc,
|
||||||
peer->peer_id, tid, 0);
|
peer_id, tid, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user