On Tue, Aug 25, 2026 at 10:06:47AM +0800, yingchao wrote:
From: Yingchao Deng dengyingchao@kylinsec.com.cn
tpdm_probe() initializes drvdata->spinlock after coresight_register(), but the sysfs attributes registered by coresight_register() use the spinlock. This exposes a window where a concurrent sysfs write can lock an uninitialized spinlock.
Initialize the spinlock before coresight_register().
Fixes: b3c71626a933 ("Coresight: Add coresight TPDM source driver") Signed-off-by: Yingchao Deng dengyingchao@kylinsec.com.cn
Reviewed-by: Leo Yan leo.yan@arm.com