Merge "msm: kgsl: Fix overflow issue to gpu_busy"

This commit is contained in:
qctecmdr 2020-08-26 04:59:24 -07:00 • committed by Gerrit - the friendly Code Review server
commit 86d7ed9aeb

View file

@ -3456,7 +3456,7 @@ static void adreno_power_stats(struct kgsl_device *device,
if (busy->gpu_busy)
gpu_busy = (val >= busy->gpu_busy) ? val - busy->gpu_busy :
(~0UL - busy->gpu_busy) + val;
(UINT_MAX - busy->gpu_busy) + val;
busy->gpu_busy = val;