summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAbhinav Kumar <abhikuma@codeaurora.org>2018-09-04 11:45:53 +0530
committernshrivas <nshrivas@codeaurora.org>2018-09-06 10:31:25 -0700
commitdfe1a47671fac99a12c9a2a401d7222a416adbf9 (patch)
treef4d41148d05cf7109337d85e53b3f617b07d4884 /tools/perf/scripts/python
parent8fa957cc17b56b51d56525ef3bb33568f7125cee (diff)
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
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions