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

Commit 29cb117d authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "spmi: spmi-pmic-arb: check apid against limits before calling irq handler"

parents 1cbb1e87 1f1661bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -535,6 +535,12 @@ static void pmic_arb_chained_irq(struct irq_desc *desc)
			id = ffs(status) - 1;
			status &= ~BIT(id);
			apid = id + i * 32;
			if (apid < pmic_arb->min_apid
			    || apid > pmic_arb->max_apid) {
				WARN_ONCE(true, "spurious spmi irq received for apid=%d\n",
					apid);
				continue;
			}
			enable = readl_relaxed(
					ver_ops->acc_enable(pmic_arb, apid));
			if (enable & SPMI_PIC_ACC_ENABLE_BIT)