瀏覽代碼

qcacmn: Fix double unmap issue in HTC misc list

Add mutex protection while freeing pkts in HTC misc list to prevent
double unmap of netbuf.

Change-Id: I5c52324e382f8047037ca1d1a50367bc6052b737
CRs-Fixed: 2646771
Saket Jha 5 年之前
父節點
當前提交
07622e4108
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dp/wifi3.0/dp_htt.c

+ 2 - 0
dp/wifi3.0/dp_htt.c

@@ -594,6 +594,7 @@ htt_htc_misc_pkt_pool_free(struct htt_soc *soc)
 	struct dp_htt_htc_pkt_union *pkt, *next;
 	qdf_nbuf_t netbuf;
 
+	HTT_TX_MUTEX_ACQUIRE(&soc->htt_tx_mutex);
 	pkt = soc->htt_htc_pkt_misclist;
 
 	while (pkt) {
@@ -611,6 +612,7 @@ htt_htc_misc_pkt_pool_free(struct htt_soc *soc)
 		pkt = next;
 	}
 	soc->htt_htc_pkt_misclist = NULL;
+	HTT_TX_MUTEX_RELEASE(&soc->htt_tx_mutex);
 }
 
 /*