summaryrefslogtreecommitdiff
path: root/qdf/linux
diff options
context:
space:
mode:
authorHouston Hoffman <hhoffman@codeaurora.org>2016-09-02 14:08:54 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-09-09 18:02:33 -0700
commita8404ef053c61eaf5bc93980324243ba66ec5a47 (patch)
tree8dfd98f562c1528f9fd56027c5ac8c9dcc41cc2e /qdf/linux
parent2349a64b9ff1794d41cfcdf5746459b7acbe97de (diff)
qcacmn: Track size of qdf_mem_list
Decrement qdf_mem_list.count when removing elements to avoid assert when destroying the list. Change-Id: I0d0989f3a9009184b898b8b27517e6d12fa3dc97 CRs-Fixed: 1063093
Diffstat (limited to 'qdf/linux')
-rw-r--r--qdf/linux/src/qdf_mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qdf/linux/src/qdf_mem.c b/qdf/linux/src/qdf_mem.c
index d29f13307abd..4f59f7a7e4ff 100644
--- a/qdf/linux/src/qdf_mem.c
+++ b/qdf/linux/src/qdf_mem.c
@@ -602,6 +602,7 @@ void qdf_mem_free(void *ptr)
* The empty list check will guarantee that we avoid a race condition.
*/
list_del_init(&mem_struct->node);
+ qdf_mem_list.count--;
qdf_spin_unlock_irqrestore(&qdf_mem_list_lock);
kfree(mem_struct);
return;