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

Commit fe4920a8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Fix range checking for profile wrapping"

parents 9f3ebfe1 e3ffb4ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1090,7 +1090,7 @@ void adreno_profile_preib_processing(struct kgsl_device *device,
	if (SIZE_SHARED_ENTRY(count) >= shared_buf_available(profile))
		goto done;

	if (entry_head + SIZE_SHARED_ENTRY(count) > profile->shared_size) {
	if (entry_head + SIZE_SHARED_ENTRY(count) >= profile->shared_size) {
		/* entry_head would wrap, start entry_head at 0 in buffer */
		entry_head = 0;
		profile->shared_size = profile->shared_head;