Explorar el Código

qcacld-3.0: Do not destroy rx_buff_list_lock if it is not used

When CONFIG_HL_SUPPORT is defined, htt_rx_dbg_rxbuf_init is not called,
and rx_buff_list_lock is not initialized. rx_buff_list_lock should not
be destroyed if it is not initialized.

Do not call htt_rx_dbg_rxbuf_deinit when CONFIG_HL_SUPPORT is defined.

Change-Id: I9d64313efd5a9978b3fb953ac5d7ffb466abe010
CRs-Fixed: 2134345
bings hace 7 años
padre
commit
8321073763
Se han modificado 2 ficheros con 1 adiciones y 1 borrados
  1. 0 1
      core/dp/htt/htt.c
  2. 1 0
      core/dp/htt/htt_rx.c

+ 0 - 1
core/dp/htt/htt.c

@@ -666,7 +666,6 @@ void htt_detach(htt_pdev_handle pdev)
 	HTT_TX_MUTEX_DESTROY(&pdev->credit_mutex);
 	HTT_TX_MUTEX_DESTROY(&pdev->htt_tx_mutex);
 	HTT_TX_NBUF_QUEUE_MUTEX_DESTROY(pdev);
-	htt_rx_dbg_rxbuf_deinit(pdev);
 }
 
 /**

+ 1 - 0
core/dp/htt/htt_rx.c

@@ -689,6 +689,7 @@ void htt_rx_detach(struct htt_pdev_t *pdev)
 {
 	qdf_timer_stop(&pdev->rx_ring.refill_retry_timer);
 	qdf_timer_free(&pdev->rx_ring.refill_retry_timer);
+	htt_rx_dbg_rxbuf_deinit(pdev);
 
 	if (pdev->cfg.is_full_reorder_offload) {
 		qdf_mem_free_consistent(pdev->osdev, pdev->osdev->dev,