Browse Source

qcacmn: resolve memory leak in invalid peer

Instead of last nbuf send whole msdu chain.

Change-Id: I9f5c2889cb7ed03d9d5f44afd5c6f36db14bc45a
nobelj 6 years ago
parent
commit
7dfc8cc755
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dp/wifi3.0/dp_rx_err.c

+ 3 - 1
dp/wifi3.0/dp_rx_err.c

@@ -707,7 +707,9 @@ dp_rx_null_q_desc_handle(struct dp_soc *soc, qdf_nbuf_t nbuf,
 
 		mpdu_done = dp_rx_chain_msdus(soc, nbuf, rx_tlv_hdr, pool_id);
 		/* Trigger invalid peer handler wrapper */
-		dp_rx_process_invalid_peer_wrapper(soc, nbuf, mpdu_done);
+		dp_rx_process_invalid_peer_wrapper(soc,
+						   pdev->invalid_peer_head_msdu,
+						   mpdu_done);
 
 		if (mpdu_done) {
 			pdev->invalid_peer_head_msdu = NULL;