From e762bb831e7f455cf01106670e769151ba53b337 Mon Sep 17 00:00:00 2001 From: Ruben Columbus Date: Mon, 29 Jun 2020 17:14:09 -0700 Subject: [PATCH] qcacmn: prevent double free on buffer wdi event has to be called before dp_txrx_ppdu_stats_handler. this will handle all pktlog htt messages including cases for mgmt frame Change-Id: Iefba15b61278fe77cbb6d6df9190e66b46ed573c --- dp/wifi3.0/dp_htt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index 121007ca9e..dde545232f 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -4192,11 +4192,11 @@ dp_ppdu_stats_ind_handler(struct htt_soc *soc, target_pdev_id = HTT_T2H_PPDU_STATS_PDEV_ID_GET(*msg_word); pdev_id = dp_get_host_pdev_id_for_target_pdev_id(soc->dp_soc, target_pdev_id); + dp_wdi_event_handler(WDI_EVENT_LITE_T2H, soc->dp_soc, + htt_t2h_msg, HTT_INVALID_PEER, WDI_NO_VAL, + pdev_id); free_buf = dp_txrx_ppdu_stats_handler(soc->dp_soc, pdev_id, htt_t2h_msg); - dp_wdi_event_handler(WDI_EVENT_LITE_T2H, soc->dp_soc, - htt_t2h_msg, HTT_INVALID_PEER, WDI_NO_VAL, - pdev_id); return free_buf; } #else