From 8612c3bb6bc60f3d130c0600fc936004f31f453b Mon Sep 17 00:00:00 2001 From: Himanshu Agarwal Date: Thu, 14 Dec 2017 14:37:08 +0530 Subject: [PATCH] qcacld-3.0: Free deauth req msg if no ack received from fw Free deauth req msg, if no ack has been received from fw, in pe_close() during interface down to avoid mem leak. Change-Id: I49508b2681f708dc56fc3938162ff856babfb0aa CRs-Fixed: 2158490 --- core/mac/src/pe/lim/lim_api.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 2a9afd1bc688..3c8ae1e0b3c8 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -876,6 +876,11 @@ tSirRetStatus pe_close(tpAniSirGlobal pMac) qdf_list_destroy(&pMac->lim.gLimMgmtFrameRegistratinQueue); qdf_mutex_destroy(&pMac->lim.lim_frame_register_lock); + if (pMac->lim.limDisassocDeauthCnfReq.pMlmDeauthReq) { + qdf_mem_free(pMac->lim.limDisassocDeauthCnfReq.pMlmDeauthReq); + pMac->lim.limDisassocDeauthCnfReq.pMlmDeauthReq = NULL; + } + qdf_spinlock_destroy(&pMac->sys.bbt_mgmt_lock); for (i = 0; i < pMac->lim.maxBssId; i++) { if (pMac->lim.gpSession[i].valid == true)