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 |
||
---|---|---|
.. | ||
bmi | ||
cds | ||
dp | ||
hdd | ||
mac | ||
pld | ||
sap | ||
sme | ||
wma |