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

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

Merge "hgsl: Fix possible array index out of bound issue"

parents a7661113 761724af
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -358,6 +358,7 @@ static void gmu_ring_local_db(struct qcom_hgsl *hgsl, unsigned int value)
static void tcsr_ring_global_db(struct qcom_hgsl *hgsl, uint32_t tcsr_idx,
				uint32_t dbq_idx)
{
	if (tcsr_idx < HGSL_TCSR_NUM)
		hgsl_tcsr_irq_trigger(hgsl->tcsr[tcsr_idx][HGSL_TCSR_ROLE_SENDER],
						GLB_DB_SRC_ISSUEIB_IRQ_ID_0 + dbq_idx);
}