Explorar o código

qcacld-3.0: do cdp_soc_detach in cds_close

Without doing cdp_soc_detach, datapth interrupts
would fire after the driver is unloaded and the
handlers have been removed from memory.

Change-Id: Ifad17059fa6f4b5957533defccc3126c15e55360
CRs-Fixed: 1103147
Houston Hoffman %!s(int64=8) %!d(string=hai) anos
pai
achega
be58cc5b8b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      core/cds/src/cds_api.c

+ 2 - 0
core/cds/src/cds_api.c

@@ -959,6 +959,8 @@ QDF_STATUS cds_close(v_CONTEXT_t cds_context)
 
 	((p_cds_contextType) cds_context)->pMACContext = NULL;
 
+	cdp_soc_detach(gp_cds_context->dp_soc);
+
 	if (true == wma_needshutdown(cds_context)) {
 		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
 				  "%s: Failed to shutdown wma", __func__);