Commit 105f5687 authored by Leo Yan's avatar Leo Yan Committed by Will Deacon
Browse files

coresight: trbe: Prevent overflow in PERF_IDX2OFF()



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

Fixes: 3fbf7f01 ("coresight: sink: Add TRBE driver")
Signed-off-by: default avatarLeo Yan <leo.yan@arm.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 542342d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment