]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: ctcu: fix the spin_bug
authorJie Gan <jie.gan@oss.qualcomm.com>
Thu, 19 Feb 2026 14:46:57 +0000 (22:46 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 26 Feb 2026 10:01:16 +0000 (10:01 +0000)
commit36ffbbc2b387bc5320e9caa90c0313743b87ba51
tree010d704747815986e8d8627d960fe4fb808b542d
parenteef33a7cce239783d0422526a4d786289a936f1b
coresight: ctcu: fix the spin_bug

Acquiring an uninitialized raw_spin_lock is invalid and may trigger
unexpected behavior or spin_bug.

Fixes: f78d206f3d73 ("Coresight: Add Coresight TMC Control Unit driver")
Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20260219-fix-spin-lock-issue-v1-1-557f7d513d7e@oss.qualcomm.com
drivers/hwtracing/coresight/coresight-ctcu-core.c