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
Esse commit está contido em:
@@ -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--)
|
for (i = HTC_PACKET_QUEUE_DEPTH(&sendQueue); i > 0; i--)
|
||||||
hif_pm_runtime_put(target->hif_dev);
|
hif_pm_runtime_put(target->hif_dev);
|
||||||
|
|
||||||
HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue,
|
|
||||||
&sendQueue);
|
|
||||||
|
|
||||||
if (!pEndpoint->async_update) {
|
if (!pEndpoint->async_update) {
|
||||||
LOCK_HTC_TX(target);
|
LOCK_HTC_TX(target);
|
||||||
}
|
}
|
||||||
|
HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue,
|
||||||
|
&sendQueue);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Referência em uma nova issue
Block a user