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

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

Merge "msm: ipa3: Add change to avoid negative index access"

parents 50975f18 230d3eff
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -3535,8 +3535,9 @@ int ipa3_qmi_reg_dereg_for_bw(bool bw_reg, int bw_reg_dereg_type)
			}
			IPA_MPM_DBG("QMI BW regst success from %d",
				ipa_mpm_ctx->bw_reg_dereg_cache[
					ipa_mpm_ctx->cache_index -
					1].bw_reg_dereg_type);
					(ipa_mpm_ctx->cache_index -
					1) % IPA_MAX_BW_REG_DEREG_CACHE].
					bw_reg_dereg_type);
		} else {
			IPA_MPM_DBG("bw_change to %d no-op, teth_count = %d",
				bw_reg,
@@ -3557,8 +3558,9 @@ int ipa3_qmi_reg_dereg_for_bw(bool bw_reg, int bw_reg_dereg_type)
			}
			IPA_MPM_DBG("QMI BW De-regst success %d",
				ipa_mpm_ctx->bw_reg_dereg_cache[
					ipa_mpm_ctx->cache_index -
					1].bw_reg_dereg_type);
					(ipa_mpm_ctx->cache_index -
					1) % IPA_MAX_BW_REG_DEREG_CACHE].
					bw_reg_dereg_type);
		} else {
			IPA_MPM_DBG("bw_change to %d no-op, teth_count = %d",
				bw_reg,