From 6c5e33226be11dd86071346fdb9bd14ecd783242 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Mon, 7 Nov 2016 00:27:50 -0500 Subject: [PATCH] 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 --- htc/htc_send.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htc/htc_send.c b/htc/htc_send.c index f81462363d27..dd1ff328b3b4 100644 --- a/htc/htc_send.c +++ b/htc/htc_send.c @@ -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; }