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

Commit 29b8cd99 authored by Ravi Gummadidala's avatar Ravi Gummadidala
Browse files

msm: ipa: fix routing index validation bug



Valid routing table indices were flagged as errors due
to an operator precedence bug. This commit fixes that bug.

Change-Id: Ia22c76b5055a51d8db4a356ae6137c59590afb3b
Signed-off-by: default avatarRavi Gummadidala <rgummadi@codeaurora.org>
parent 9db3628e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -922,9 +922,9 @@ static int __ipa_add_flt_rule(struct ipa_flt_tbl *tbl, enum ipa_ip_type ip,
				goto error;
			}
		} else {
			if (rule->rt_tbl_idx > (ip == IPA_IP_v4) ?
			if (rule->rt_tbl_idx > ((ip == IPA_IP_v4) ?
					IPA_v2_V4_MODEM_RT_INDEX_HI :
					IPA_v2_V6_MODEM_RT_INDEX_HI) {
					IPA_v2_V6_MODEM_RT_INDEX_HI)) {
				IPAERR("invalid RT tbl\n");
				goto error;
			}