qcacmn: Acquire lock before calling rx tid setup

The rx tid setup function is called from multiple contexts.
Acquire lock before calling that function to avoid race condition.

Change-Id: I7a0443e5e09a068301de171afeb4d400bf54b1c8
CRs-Fixed: 3291079
This commit is contained in:
Ripan Deuri
2022-09-01 11:19:38 +05:30
committed by Madan Koyyalamudi
parent c3ea01cd1b
commit cb33f7e1d3
2 changed files with 5 additions and 0 deletions

View File

@@ -4074,6 +4074,7 @@ static int dp_rx_tid_delete_wifi3(struct dp_peer *peer, int tid)
if (!freedesc) {
dp_peer_err("%pK: malloc failed for freedesc: tid %d",
soc, tid);
qdf_assert(0);
return -ENOMEM;
}