Quellcode durchsuchen

qcacld-3.0: Add HTT packet in misc_list to avoid memleak

Add HTT packet buffer in misc_list for
HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG command to avoid memleak.

Change-Id: I1c3fb6232c4b7dab6c10459d53e611d3358b69cc
CRs-Fixed: 1001996
Nirav Shah vor 9 Jahren
Ursprung
Commit
194ce08855
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      core/dp/htt/htt_h2t.c

+ 4 - 0
core/dp/htt/htt_h2t.c

@@ -178,6 +178,10 @@ A_STATUS htt_h2t_frag_desc_bank_cfg_msg(struct htt_pdev_t *pdev)
 	SET_HTC_PACKET_NET_BUF_CONTEXT(&pkt->htc_pkt, msg);
 
 	rc = htc_send_pkt(pdev->htc_pdev, &pkt->htc_pkt);
+#ifdef ATH_11AC_TXCOMPACT
+	if (rc == A_OK)
+		htt_htc_misc_pkt_list_add(pdev, pkt);
+#endif
 
 	return rc;
 }