Re: [PATCH v2 1/2] OPP: add index check to assert to avoid buffer overflow in _read_freq()
From: Neil Armstrong
Date: Mon Dec 02 2024 - 05:36:53 EST
On 02/12/2024 07:33, Viresh Kumar wrote:
On 29-11-24, 16:06, Neil Armstrong wrote:
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
+static bool assert_single_clk(struct opp_table *opp_table, int __always_unused index)
Shouldn't the index be unsigned int here ?
Yes, I'll respin a v3 with that.
Thanks,
Neil