android_kernel_xiaomi_sm8350/core
Abhinav Kumar 1138a912a7 qcacld-3.0: Possible mem leak in wma_roam_scan_offload_mode
wma_roam_scan_offload_mode, allocates mem for params buffer
to store roaming offload scan parameters locally from incoming
roam req. In last it calls wmi_unified_roam_scan_offload_mode_cmd
using param as an argument to set roam scan parameters to wmi
structure and free the local param buffer in the successful case.
But in case if driver unable to write wmi struct,
wma_roam_scan_offload_mode returns error status to its caller
without freeing locally allocated params mem buffer. This results
in mem leak while unsuccessful roaming offload.

Fix is to free locally allocated mem buff before the return
in case of roaming offload failure

Change-Id: Ic73f0b3ec004c3dcc53076594c0b872a29fee633
CRs-Fixed: 2308506
2018-09-05 06:46:51 -07:00
..
bmi qcacld-3.0: Fix an OOB issue in bmi_sign_stream_start() 2018-08-17 04:40:05 -07:00
cds qcacld-3.0: Reduce log level for few prints to debug 2018-09-03 06:48:36 -07:00
dp qcacld-3.0: Donot de-init DP RX threads if not inited 2018-09-02 14:33:23 -07:00
hdd qcacld-3.0: Add process for userspace does not set avoid channel list 2018-09-05 05:08:54 -07:00
mac Release 5.2.0.95D 2018-09-05 05:08:54 -07:00
pld qcacld-3.0: Add shutdown/reinit support for PLD_CNSS_USB 2018-07-19 08:32:41 -07:00
sap qcacld-3.0: Add mtrace logging for scan request 2018-09-04 21:15:01 -07:00
sme qcacld-3.0: Remove useless legacy roam reason eCsrLostLink1/2/3 2018-09-05 05:08:47 -07:00
wma qcacld-3.0: Possible mem leak in wma_roam_scan_offload_mode 2018-09-05 06:46:51 -07:00