mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacmn: Fix RX dead loop for SDIO WLAN
There is a dead loop when nbuf allocation failed for SDIO WLAN. Do not change the status back to OK when E_RESOURCE is triggered. CRs-Fixed: 2112323 Change-Id: I50b8fff99707cdccb1e5e837558131d6777ec9c0
This commit is contained in:
parent
482bc5ecbc
commit
ebc085458b
1 changed files with 3 additions and 5 deletions
|
|
@ -283,10 +283,6 @@ QDF_STATUS hif_dev_alloc_and_prepare_rx_packets(struct hif_sdio_device *pdev,
|
|||
}
|
||||
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
if (QDF_STATUS_E_RESOURCES == status) {
|
||||
/* this is actually okay */
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -294,7 +290,9 @@ QDF_STATUS hif_dev_alloc_and_prepare_rx_packets(struct hif_sdio_device *pdev,
|
|||
|
||||
UNLOCK_HIF_DEV_RX(pdev);
|
||||
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
/* for NO RESOURCE error, no need to flush data queue */
|
||||
if (QDF_IS_STATUS_ERROR(status)
|
||||
&& (status != QDF_STATUS_E_RESOURCES)) {
|
||||
while (!HTC_QUEUE_EMPTY(queue))
|
||||
packet = htc_packet_dequeue(queue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue