cnss_prealloc: Dump the call stack if there is no memory available
Dump the call stack if there is no memory available from the prealloc pool in order to get the source of the memory allocation. Change-Id: I0b523e82638410ea679f1d9d3f4bb56703ed9100 Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
4457a963d5
commit
e073cd538d
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ void *wcnss_prealloc_get(unsigned int size)
|
|||
|
||||
pr_err("wcnss: %s: prealloc not available for size: %d\n",
|
||||
__func__, size);
|
||||
WARN_ON(1);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue