android_kernel_xiaomi_sm8350/core
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
..
bmi
cds qcacld-3.0: Configure pktlog buffer size from INI 2020-01-31 02:33:31 -08:00
dp qcacld-3.0: Configure pktlog buffer size from INI 2020-01-31 02:33:31 -08:00
hdd qcacld-3.0: Keep driver synced with proper dot11 mode as per INI 2020-02-07 00:15:45 -08:00
mac Release 5.2.0.169D 2020-02-07 00:15:46 -08:00
pld qcacld-3.0: Reject Vdev trans when driver in unloading/recovering 2020-01-20 12:31:40 -08:00
sap qcacld-3.0: Log enhancement in ACS 2020-02-04 09:11:13 -08:00
sme qcacld-3.0: Refine csr_dump_connection_stats() with more info 2020-02-06 14:31:39 -08:00
wma qcacld-3.0: Free link_layer_stats results properly 2020-02-07 03:06:11 -08:00