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

Commit a856cb6a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa4: Don't decrease the client count if suspend fail"

parents 02fe6eea 1928d956
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7776,12 +7776,12 @@ int ipa3_suspend_apps_pipes(bool suspend)

	return 0;
undo_prod:
	for (client--; client < IPA_CLIENT_MAX && client >= 0; client--)
	for (client; client <= IPA_CLIENT_MAX && client >= 0; client--)
		if (IPA_CLIENT_IS_APPS_PROD(client))
			_ipa_suspend_resume_pipe(client, !suspend);
	client = IPA_CLIENT_MAX;
undo_cons:
	for (client--; client < IPA_CLIENT_MAX && client >= 0; client--)
	for (client; client <= IPA_CLIENT_MAX && client >= 0; client--)
		if (IPA_CLIENT_IS_APPS_CONS(client))
			_ipa_suspend_resume_pipe(client, !suspend);
	return res;