]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: cti: Properly handle negative offsets in cti_reg32_{show|store}()
authorLeo Yan <leo.yan@arm.com>
Thu, 26 Feb 2026 09:23:56 +0000 (09:23 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 3 Mar 2026 10:23:46 +0000 (10:23 +0000)
commit9c5ef7a30d9044f8706bd02bfdc4eff7266f3e25
tree9d2188fe6896157d2fafd86aac4d466157b993ff
parentd5e57babdffb961ca8b51910d00c2c0ddb03c54a
coresight: cti: Properly handle negative offsets in cti_reg32_{show|store}()

Return an error when the offset is negative.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Mike Leach <mike.leach@Arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20260226-arm_coresight_cti_refactor_v1-v2-8-b30fada3cfec@arm.com
drivers/hwtracing/coresight/coresight-cti-sysfs.c