From 35bded49b36e4c392251acffd9f9daf8943c28eb Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Wed, 22 Feb 2017 04:20:50 -0500 Subject: [PATCH] qcacld-3.0: Fix peer invalid free issue qcacld-2.0 to qcacld-3.0 propagation tx_msdu_info.peer should be reset to NULL for each MSDU. Each MSDU will be classified by ol_tx_classify to get peer. Change-Id: I68fe619435a6edfdd82fa083ad9cb81251705ad5 CRs-Fixed: 1109984 --- core/dp/txrx/ol_tx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/dp/txrx/ol_tx.c b/core/dp/txrx/ol_tx.c index 6aa8f488f61a..b019adf46eda 100644 --- a/core/dp/txrx/ol_tx.c +++ b/core/dp/txrx/ol_tx.c @@ -1490,7 +1490,6 @@ ol_tx_hl_base( struct ocb_tx_ctrl_hdr_t tx_ctrl; htt_pdev_handle htt_pdev = pdev->htt_pdev; - tx_msdu_info.peer = NULL; tx_msdu_info.tso_info.is_tso = 0; /* @@ -1505,7 +1504,7 @@ ol_tx_hl_base( struct ol_tx_desc_t *tx_desc = NULL; qdf_mem_zero(&tx_ctrl, sizeof(tx_ctrl)); - + tx_msdu_info.peer = NULL; /* * The netbuf will get stored into a (peer-TID) tx queue list * inside the ol_tx_classify_store function or else dropped,