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
This commit is contained in:

committed by
snandini

parent
bc4a19290d
commit
3188f98125
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user