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:
Liangwei Dong
2016-11-07 00:27:50 -05:00
commit de qcabuildsw
commit 6c5e33226b

Ver arquivo

@@ -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;
} }