Prechádzať zdrojové kódy

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
Liangwei Dong 8 rokov pred
rodič
commit
35bded49b3
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 2
      core/dp/txrx/ol_tx.c

+ 1 - 2
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,