Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86d7ed9a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents a344fa7c 27769789
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;