Explorar el Código

qcacmn: Fix recursive memory allocation failure

On low memory conditions, qdf_mem_malloc_debug() fails and
on failure it triggers a host diag event to user space
which again tries to allocate memory using qdf_mem_malloc_debug()
which fails and this loop continues and might have caused
workqueue to get stuck.

Fix this by not sending the host diag event to user space on
low memory conditions.

Change-Id: I5bd302dfa372d40c570eaa830ed82a0bbaddc51f
CRs-Fixed: 2026975
Srinivas Girigowda hace 8 años
padre
commit
3188f98125
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      qdf/linux/src/qdf_mem.c

+ 0 - 1
qdf/linux/src/qdf_mem.c

@@ -959,7 +959,6 @@ void *qdf_mem_malloc_debug(size_t size,
 		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
 			  "%s: called with invalid arg; passed in %zu !!!",
 			  __func__, size);
-		host_log_low_resource_failure(WIFI_EVENT_MEMORY_FAILURE);
 		return NULL;
 	}