From abb925005dab9be5934130411caabf8877b68ca1 Mon Sep 17 00:00:00 2001 From: Soumya Bhat Date: Wed, 27 Dec 2017 17:14:32 +0530 Subject: [PATCH] qcacmn: Remove nbuf free Do not free ppdu nbuf when status pending since this does not lead to a leak. Change-Id: I9c1892d77c5043165853c1585d835bd4d9119357 --- dp/wifi3.0/dp_htt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index d2dbc2230856..e1af62bc49ad 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -2343,12 +2343,10 @@ static void dp_txrx_ppdu_stats_handler(struct dp_soc *soc, pdev->tx_ppdu_info.buf, HTT_INVALID_PEER, WDI_NO_VAL, pdev_id); - } else { - qdf_nbuf_free(pdev->tx_ppdu_info.buf); + pdev->tx_ppdu_info.buf = NULL; + pdev->tx_ppdu_info.last_user = 0; } - pdev->tx_ppdu_info.buf = NULL; - pdev->tx_ppdu_info.last_user = 0; } #else static void dp_txrx_ppdu_stats_handler(struct dp_soc *soc,