Re: [PATCH] coresight: cti: fix the check condition in inout_sel_store
From: Leo Yan
Date: Fri Mar 27 2026 - 06:04:20 EST
On Fri, Mar 27, 2026 at 02:24:14PM +0800, Jie Gan wrote:
> Correct the upper bound from CTIINOUTEN_MAX to config->nr_trig_max,
> since nr_trig_max varies across CTI devices. An out-of-bounds issue
> occurs when a value greater than config->nr_trig_max is provided,
> leading to unexpected errors.
>
> Fixes: b5213376c240 ("coresight: cti: Add sysfs access to program function registers")
> Signed-off-by: Jie Gan <jie.gan@xxxxxxxxxxxxxxxx>
Reviewed-by: Leo Yan <leo.yan@xxxxxxx>