Browse Source

qcacmn: Fix msdu link descriptor leak in fragment handler

msdu link desctriptor leak got introduced because two
gerrits got merged at the same time.

Change-Id: I65dbbab016e2e31c0943c37d614e6613193a56fd
Tallapragada Kalyan 6 years ago
parent
commit
f990490712
1 changed files with 1 additions and 4 deletions
  1. 1 4
      dp/wifi3.0/dp_rx_defrag.c

+ 1 - 4
dp/wifi3.0/dp_rx_defrag.c

@@ -1443,10 +1443,7 @@ static QDF_STATUS dp_rx_defrag_store_fragment(struct dp_soc *soc,
 	if (!rx_reorder_array_elem) {
 		QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
 			  "Rcvd Fragmented pkt before peer_tid is setup");
-		qdf_nbuf_free(frag);
-		dp_rx_add_to_free_desc_list(head, tail, rx_desc);
-		*rx_bfs = 1;
-		goto end;
+		goto discard_frag;
 	}
 
 	/*