Parcourir la source

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 il y a 8 ans
Parent
commit
3188f98125
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  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;
 	}