diff options
| author | Rajeev Kumar <rajekuma@qca.qualcomm.com> | 2014-04-30 13:09:29 -0700 |
|---|---|---|
| committer | Pitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com> | 2014-05-02 10:51:40 +0530 |
| commit | 65adea1d9420002ffb7ac8429efd2f50690836fe (patch) | |
| tree | 984ae943c01ea9d118846a321f90c791eb7cb6e4 | |
| parent | ef5ba8212b93b9f269b7274b3a238cfdbe316782 (diff) | |
qcacld: Fix of crash in TxLookupQueue while flushing WMI cmds
TxLookupQueue needs to be restored back after fetching pPacket
from the list even if pPacket is null.
Change-Id: Icf6b32d3fec9ec7e492e9a4f10e174f776cf52c4
CRs-Fixed: 657051
| -rw-r--r-- | CORE/SERVICES/HTC/htc_send.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CORE/SERVICES/HTC/htc_send.c b/CORE/SERVICES/HTC/htc_send.c index 26bb07c2754a..40a802efbb86 100644 --- a/CORE/SERVICES/HTC/htc_send.c +++ b/CORE/SERVICES/HTC/htc_send.c @@ -1310,8 +1310,11 @@ static HTC_PACKET *HTCLookupTxPacket(HTC_TARGET *target, HTC_ENDPOINT *pEndpoint UNLOCK_HTC_TX(target); ITERATE_OVER_LIST_ALLOW_REMOVE(&lookupQueue.QueueHead,pPacket,HTC_PACKET,ListLink) { - if (NULL == pPacket) - return NULL; + + if (NULL == pPacket){ + pFoundPacket = pPacket; + break; + } /* check for removal */ if (netbuf == (adf_nbuf_t)GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket)) { /* found it */ |
