mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
qcacmn: Protect the TxQueue in failure
qcacld-2.0 to qcacmn propagation To acquire lock to protect pEndpoint->TxQueue in the failure path. Change-Id: I6844f1329427e7065dc3e4e64bf105087d963dd9 CRs-Fixed: 1077223
This commit is contained in:
parent
da0611616d
commit
6c5e33226b
1 changed files with 2 additions and 4 deletions
|
|
@ -1228,13 +1228,11 @@ static HTC_SEND_QUEUE_RESULT htc_try_send(HTC_TARGET *target,
|
|||
|
||||
for (i = HTC_PACKET_QUEUE_DEPTH(&sendQueue); i > 0; i--)
|
||||
hif_pm_runtime_put(target->hif_dev);
|
||||
|
||||
HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue,
|
||||
&sendQueue);
|
||||
|
||||
if (!pEndpoint->async_update) {
|
||||
LOCK_HTC_TX(target);
|
||||
}
|
||||
HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue,
|
||||
&sendQueue);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue