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

Commit 6dab5cfa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: fix routing index validation bug"

parents c88f8f4f 29b8cd99
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;
			}