1138a912a71f49e9cd065fd51b5ecdc7fca259d7

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
This is CNSS WLAN Host Driver for products starting from iHelium
描述
语言
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%