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

Commit 2a39f6d7 authored by louisliu's avatar louisliu Committed by louisliu(74654)
Browse files

Fix android.security.sts.Poc19_02#testPocCVE_2018_13900

Root cause:
N/A

How to fix:
QCOM Patch
CR_2287499.patch

QCOM case ID:04467755

Issue: PRJ8901-646

Change-Id: Iacf0f5bf7c2e90f2fd91b8deb8be4b03a38f21ea
parent 95029761
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1067,9 +1067,8 @@ static int __ipa_add_rt_rule(enum ipa_ip_type ip, const char *name,
	 * tables
	 */
	if (!strcmp(tbl->name, IPA_DFLT_RT_TBL_NAME) &&
	    (tbl->rule_cnt > 0) && (at_rear != 0)) {
		IPAERR("cannot add rule at end of tbl rule_cnt=%d at_rear=%d\n",
		       tbl->rule_cnt, at_rear);
	    (tbl->rule_cnt > 0)) {
		IPAERR_RL("cannot add rules to default rt table\n");
		goto error;
	}

@@ -1606,6 +1605,11 @@ static int __ipa_mdfy_rt_rule(struct ipa_rt_rule_mdfy *rtrule)
		goto error;
	}

	if (!strcmp(entry->tbl->name, IPA_DFLT_RT_TBL_NAME)) {
		IPAERR_RL("Default tbl rule cannot be modified\n");
		return -EINVAL;
	}

	/* Adding check to confirm still
	 * header entry present in header table or not
	 */