From e9d320934e1af07bd1d9d81dd8cf5f5e0e14e601 Mon Sep 17 00:00:00 2001 From: Soumya Bhat Date: Tue, 24 Oct 2017 13:13:05 +0530 Subject: [PATCH] qcacmn: Fix return condition Fix return condition in dp_tx_comp_free_buf() Change-Id: Ia2d5fc1d3ceb12dfbb029627dc47e575ef52b327 CRs-Fixed: 2131477 --- dp/wifi3.0/dp_tx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index c70bea2cb12e..a0fc4dc78227 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -1823,7 +1823,8 @@ static inline void dp_tx_comp_free_buf(struct dp_soc *soc, qdf_nbuf_unmap(soc->osdev, nbuf, QDF_DMA_TO_DEVICE); - if (dp_send_compl_to_stack(soc, desc, ts.peer_id, ts.ppdu_id)) + if (dp_send_compl_to_stack(soc, desc, ts.peer_id, ts.ppdu_id) == + QDF_STATUS_SUCCESS) return; if (!vdev->mesh_vdev) {