coresight: trbe: Prevent overflow in PERF_IDX2OFF()

[ Upstream commit 105f56877f ]

Cast nr_pages to unsigned long to avoid overflow when handling large
AUX buffer sizes (>= 2 GiB).

Fixes: 3fbf7f011f ("coresight: sink: Add TRBE driver")
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Leo Yan 2025-09-17 18:41:38 +01:00 • committed by Greg Kroah-Hartman
commit 637f28a25b