qcacmn: Fix memory leak at policy manager initialization

Fix memory leak in policy manager init/deinit sequence.

Change-Id: I3c1728f2becb16b415f532acf657c7c29dc76122
CRs-Fixed: 2009818
This commit is contained in:
Tushnim Bhattacharyya
2017-04-27 11:49:06 -07:00
committed by snandini
부모 d54693fe79
커밋 b3cbf84777
2개의 변경된 파일45개의 추가작업 그리고 7개의 파일을 삭제

파일 보기

@@ -249,6 +249,18 @@ static QDF_STATUS dispatcher_policy_mgr_deinit(void)
return policy_mgr_deinit();
}
static QDF_STATUS dispatcher_policy_mgr_psoc_open(
struct wlan_objmgr_psoc *psoc)
{
return policy_mgr_psoc_open(psoc);
}
static QDF_STATUS dispatcher_policy_mgr_psoc_close(
struct wlan_objmgr_psoc *psoc)
{
return policy_mgr_psoc_close(psoc);
}
static QDF_STATUS dispatcher_policy_mgr_psoc_enable(
struct wlan_objmgr_psoc *psoc)
{
@@ -271,6 +283,18 @@ static QDF_STATUS dispatcher_policy_mgr_deinit(void)
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_psoc_open(
struct wlan_objmgr_psoc *psoc)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_psoc_close(
struct wlan_objmgr_psoc *psoc)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_psoc_enable(
struct wlan_objmgr_psoc *psoc)
{
@@ -659,12 +683,17 @@ QDF_STATUS dispatcher_psoc_open(struct wlan_objmgr_psoc *psoc)
if (QDF_STATUS_SUCCESS != atf_psoc_open(psoc))
goto atf_psoc_open_fail;
if (QDF_STATUS_SUCCESS != dispatcher_policy_mgr_psoc_open(psoc))
goto policy_mgr_psoc_open_fail;
if (QDF_STATUS_SUCCESS != dispatcher_regulatory_psoc_open(psoc))
goto regulatory_psoc_open_fail;
return QDF_STATUS_SUCCESS;
regulatory_psoc_open_fail:
dispatcher_policy_mgr_psoc_close(psoc);
policy_mgr_psoc_open_fail:
atf_psoc_close(psoc);
atf_psoc_open_fail:
wlan_serialization_psoc_close(psoc);
@@ -684,6 +713,8 @@ QDF_STATUS dispatcher_psoc_close(struct wlan_objmgr_psoc *psoc)
{
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_regulatory_psoc_close(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_policy_mgr_psoc_close(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == atf_psoc_close(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == wlan_serialization_psoc_close(psoc));