ソースを参照

qcacmn: fix for nbuf leak issue

Fix a nbuf leak issue in htt tx completion path for
invalid peer frames

Change-Id: I7818bd2cfe8144e1ea8b1d43e5e5c1de929f91cc
Pamidipati, Vijay 6 年 前
コミット
7d6957294f
1 ファイル変更5 行追加4 行削除
  1. 5 4
      dp/wifi3.0/dp_tx.c

+ 5 - 4
dp/wifi3.0/dp_tx.c

@@ -3031,11 +3031,12 @@ void dp_tx_process_htt_completion(struct dp_tx_desc_s *tx_desc, uint8_t *status)
 			ts.status = HAL_TX_TQM_RR_REM_CMD_REM;
 
 		peer = dp_peer_find_by_id(soc, ts.peer_id);
-		if (qdf_likely(peer)) {
-			dp_tx_comp_process_tx_status(tx_desc, &ts, peer);
-			dp_tx_comp_process_desc(soc, tx_desc, &ts, peer);
+
+		if (qdf_likely(peer))
 			dp_peer_unref_del_find_by_id(peer);
-		}
+
+		dp_tx_comp_process_tx_status(tx_desc, &ts, peer);
+		dp_tx_comp_process_desc(soc, tx_desc, &ts, peer);
 		dp_tx_desc_release(tx_desc, tx_desc->pool_id);
 
 		break;