mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacld-3.0: Fix mem leak during reset passpoint list wma command
The function sme_reset_passpoint_list, posts the wma message WMA_RESET_PASSPOINT_LIST_REQ. This message is freed at the sme_reset_passpoint_list in case of failure. But for the success case, the req_msg is not freed at wma_mc_process_msg. This results in mem_leak in case of success case. Free the req_msg at wma_mc_process_msg after returning from the call wma_reset_passpoint_network_list. Change-Id: Ib4b427a8acc2d531ac9d6e8f92a30205163ec0ba CRs-Fixed: 2259237
This commit is contained in:
parent
3639a6415b
commit
f65cffe88c
1 changed files with 1 additions and 0 deletions
|
|
@ -8220,6 +8220,7 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg)
|
|||
case WMA_RESET_PASSPOINT_LIST_REQ:
|
||||
wma_reset_passpoint_network_list(wma_handle,
|
||||
(struct wifi_passpoint_req *)msg->bodyptr);
|
||||
qdf_mem_free(msg->bodyptr);
|
||||
break;
|
||||
#endif /* FEATURE_WLAN_EXTSCAN */
|
||||
case WMA_SET_SCAN_MAC_OUI_REQ:
|
||||
|
|
|
|||
Loading…
Reference in a new issue