qcacld-3.0: Set sme power stats response cb and context to NULL
Currently if the power stats command is invoked from multiple threads, then the thread which invokes the command at the last will overwrite the request manager cookie in the mac context. Now when host gets response for these multiple requests, hdd calback hdd_power_debugstats_cb will be invoked for each response with the same cookie. in hdd_power_debugstats_cb host allocates memory for the private data and this memory will also be allocated multiple times and the last allocations will overwrite the initial memory allocs which will lead to the memory leaks. To address above issue set the sme power stats response cb and context to NULL so that the callback is invoked only once. Change-Id: I6fae0f96771ba505f06c1be14a8907b56efede24 CRs-Fixed: 2857855
Loading
Please register or sign in to comment