android_kernel_xiaomi_sm8350/core/wma/inc
Sourav Mohapatra 2cbc99c302 qcacld-3.0: Free link_layer_stats results properly
As per the logic implemented in the FW, it will send a dummy event for
link layer stats in case the buffer allocation fails. In this case,
there can occur a scenario in host wherein we are not properly freeing
the previously allocated memory.

In the event handler wma_unified_link_radio_stats_event_handler, if the
event is dummy, we are updating the value of the num_radios inside
wma_handle->link_layer_results. This num_radios is later used to free
any allocated memory. On setting it to zero, we are preventing that
memfree to occur; leading to a memleak.

To fix this, in case there is a dummy event, first free any possible
previous results before setting the num_radios to be zero.

Change-Id: Ibe4ddf1a137a33130100483cefb004b7dae4ce02
CRs-Fixed: 2610754
2020-02-07 03:06:11 -08:00
..
wma_api.h qcacld-3.0: Free link_layer_stats results properly 2020-02-07 03:06:11 -08:00
wma_coex.h
wma_fw_state.h
wma_he.h
wma_if.h
wma_internal.h
wma_tgt_cfg.h
wma_twt.h
wma_types.h
wma.h