diff options
| author | Liangwei Dong <liangwei@codeaurora.org> | 2016-10-14 03:16:38 -0400 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-10-25 11:54:23 +0530 |
| commit | 61f02da549a94cdfbf58cd40c0a922715ab8d36b (patch) | |
| tree | e95ab414cfe4c2f1abb4f666601c7fad4a11cd46 | |
| parent | 99558c142e492f256f83f7ecce7c662c07f95742 (diff) | |
qcacld-2.0: Protect the TxQueue in failure
To acquire lock to protect pEndpoint->TxQueue
in the failure path.
Change-Id: I6844f1329427e7065dc3e4e64bf105087d963dd9
CRs-Fixed: 1077223
| -rw-r--r-- | CORE/SERVICES/HTC/htc_send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SERVICES/HTC/htc_send.c b/CORE/SERVICES/HTC/htc_send.c index 3019ee83f3d9..508e4f43d3ab 100644 --- a/CORE/SERVICES/HTC/htc_send.c +++ b/CORE/SERVICES/HTC/htc_send.c @@ -1142,9 +1142,9 @@ static HTC_SEND_QUEUE_RESULT HTCTrySend(HTC_TARGET *target, AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("htc_issue_packets, failed status:%d put it back to head of callers SendQueue", result)); + LOCK_HTC_TX(target); HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue, &sendQueue); - LOCK_HTC_TX(target); break; } |
