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

Commit 65287157 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: fix client cons check on hw stats



Fix input validation condition for IPA HW stats.

Change-Id: If64a43cebe4fd6b1f3d7e800cd630c1487f99896
Acked-by: default avatarAdy Abraham <adya@qti.qualcom.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 67fd1b8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -599,7 +599,7 @@ int ipa_reset_teth_stats(enum ipa_client_type prod, enum ipa_client_type cons)
	if (!ipa3_ctx->hw_stats.enabled)
		return 0;

	if (!IPA_CLIENT_IS_PROD(prod) || IPA_CLIENT_IS_CONS(cons) == -1) {
	if (!IPA_CLIENT_IS_PROD(prod) || !IPA_CLIENT_IS_CONS(cons)) {
		IPAERR("invalid prod %d or cons %d\n", prod, cons);
		return -EINVAL;
	}