android_kernel_xiaomi_sm8350/core
gaurank kathpalia e4a628f2d6 qcacld-3.0: Free channel-list memory from Sap_context
The driver allocates memory to channelist in the API
sap_get_channel_list, and stores the pointer to channel
list in sap_context, and frees the memory allocated for
the same in scan request callback.
But it may happen that before the callback, stop adapter
calls wlansap_context_put and frees the memory allocated
to sap context, without the mem free of channellist, which
results in a mem leak

Fix is to add a NULL check to sap context and free the memory
allocated to the sap context channel list in
sap_cleanup_channel_list.

Change-Id: I7030ca8325ae4c968db654bf14062e332f409b87
CRs-Fixed: 2254767
2018-06-13 22:26:54 -07:00
..
bmi qcacld-3.0: bmi: Fix misspellings 2018-05-16 18:01:27 -07:00
cds qcacld-3.0: Add INI support for number of vdevs 2018-06-13 15:23:53 -07:00
dp qcacld-3.0: Use of %p in htt_t2h_tx_ppdu_log_print() 2018-06-11 04:45:08 -07:00
hdd qcacld-3.0: Check vdevs in hdd_check_for_leaks 2018-06-13 21:00:41 -07:00
mac Release 5.2.0.82P 2018-06-13 21:00:44 -07:00
pld qcacld-3.0: Check if sdio device is valid before start wifi 2018-06-07 21:08:36 -07:00
sap qcacld-3.0: Free channel-list memory from Sap_context 2018-06-13 22:26:54 -07:00
sme qcacld-3.0: Fix sme_get_status_for_candidate() prototype 2018-06-08 14:26:28 -07:00
wma qcacld-3.0: Remove logging of peer info after peer delete 2018-06-13 21:00:44 -07:00