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

Commit 279eac2f authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: Fix teth_bridge disconnect method with the pm



Replace pm_destroy with pm_deregister and also add additional
check for APIs to help with future issues.

CRs-fixed: 2158684
Change-Id: I98327dbda87a5b577ef7cbc1714d3697a065af55
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 33ba9737
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -688,6 +688,11 @@ int ipa_pm_register(struct ipa_pm_register_params *params, u32 *hdl)
		return -EINVAL;
	}

	if (ipa_pm_ctx == NULL) {
		IPA_PM_ERR("PM_ctx is null\n");
		return -EINVAL;
	}

	if (params == NULL || hdl == NULL || params->name == NULL) {
		IPA_PM_ERR("Invalid Params\n");
		return -EINVAL;