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:
Yue Ma 2016-02-16 12:24:11 -08:00 committed by David Keitel
parent 4457a963d5
commit e073cd538d

View file

@ -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;
}