Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e54d9e0c authored by Govind Singh's avatar Govind Singh Committed by Gerrit - the friendly Code Review server
Browse files

ath10k: Destroy QMI handle during driver unload



QMI handle was not destroyed during unload and server exit
and resulting in qmi handle leak.

Fix this problem by destroying the QMI handle during
driver unload and server exit.

Change-Id: I7557de7c2ff2cb7d82d6e8a3480e8d5f4be6a5f4
Signed-off-by: default avatarGovind Singh <govinds@codeaurora.org>
parent 28826d53
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -719,6 +719,7 @@ static int ath10k_snoc_driver_event_server_exit(struct ath10k *ar)
	atomic_set(&qmi_cfg->fw_ready, 0);
	qmi_cfg->msa_ready = false;
	atomic_set(&qmi_cfg->server_connected, 0);
	qmi_handle_destroy(qmi_cfg->wlfw_clnt);
	return 0;
}

@@ -896,5 +897,6 @@ void ath10k_snoc_stop_qmi_service(struct ath10k *ar)
					  WLFW_SERVICE_INS_ID_V01,
					  &qmi_cfg->wlfw_clnt_nb);
	destroy_workqueue(qmi_cfg->event_wq);
	qmi_handle_destroy(qmi_cfg->wlfw_clnt);
	qmi_cfg = NULL;
}