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

Commit e7c64262 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 to kasan use-after-free issue"

parents a02344c8 47193a1d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -854,12 +854,16 @@ int ipa2_query_rt_index(struct ipa_ioc_get_rt_tbl_indx *in)
		return -EINVAL;
	}

	mutex_lock(&ipa_ctx->lock);
	/* check if this table exists */
	entry = __ipa_find_rt_tbl(in->ip, in->name);
	if (!entry)
	if (!entry) {
		mutex_unlock(&ipa_ctx->lock);
		return -EFAULT;
	}

	in->idx  = entry->idx;
	mutex_unlock(&ipa_ctx->lock);
	return 0;
}

+5 −2
Original line number Diff line number Diff line
@@ -724,12 +724,15 @@ int ipa3_query_rt_index(struct ipa_ioc_get_rt_tbl_indx *in)
		return -EINVAL;
	}

	mutex_lock(&ipa3_ctx->lock);
	/* check if this table exists */
	entry = __ipa3_find_rt_tbl(in->ip, in->name);
	if (!entry)
	if (!entry) {
		mutex_unlock(&ipa3_ctx->lock);
		return -EFAULT;

	}
	in->idx  = entry->idx;
	mutex_unlock(&ipa3_ctx->lock);
	return 0;
}