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 qcacld-3.0: Configure vdev HE Tx beamform settings to FW 2020-01-27 23:32:11 -08:00
wma_if.h qcacld-3.0: Add support for pmkid generation for FIPS 2020-01-27 03:57:30 -08:00
wma_internal.h qcacld-3.0: Set power save enable directly to FW 2020-02-03 09:39:06 -08:00
wma_tgt_cfg.h qcacld-3.0: Add 80+80 restricted BW support 2019-12-04 14:40:31 -08:00
wma_twt.h qcacld-3.0: Re-enable TWT before host TWT trigger mode 2019-10-09 16:16:43 -07:00
wma_types.h qcacld-3.0: Set power save enable directly to FW 2020-02-03 09:39:06 -08:00
wma.h qcacld-3.0: Add support for pmkid generation for FIPS 2020-01-27 03:57:30 -08:00