qcacmn: Remove qdf_flex_mem_release()
Due to a limitation in the memory leak detection logic when qdf_flex_mem was written, qdf_flex_mem_release() was necessary to free any dynamically allocated memory in the qdf_flex_mem_pool during certain points in the WLAN driver lifecycle. This was done to avoid flagging any dynamically allocated qdf_flex_mem_segments as false positive leaks when the memory domains were changed and leak checking was performed. With the introduction of qdf_talloc(), this workaround is no longer required. Replace the calls to qdf_mem_malloc/free with qdf_talloc/free, and remove qdf_flex_mem_release() altogether. Change-Id: Ia5fd21386b94fc117af5f27853db5d8341601738 CRs-Fixed: 2404955
This commit is contained in:

committed by
nshrivas

orang tua
3fe77afae9
melakukan
8ddef7dd9a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -455,7 +455,5 @@ void scheduler_queues_flush(struct scheduler_ctx *sched_ctx)
|
||||
mq = &sched_ctx->queue_ctx.sch_msg_q[i];
|
||||
scheduler_flush_single_queue(mq);
|
||||
}
|
||||
|
||||
qdf_flex_mem_release(&sched_pool);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user