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:
Liangwei Dong
2016-11-07 00:27:50 -05:00
committed by qcabuildsw
szülő da0611616d
commit 6c5e33226b

Fájl megtekintése

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