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

Commit d9ac307a authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Advance the profiling shared buffer on error



If there is an error in the per-command profiling shared buffer
(e.g. an offset is incorrect) advance the shared buffer tail
anyway.  Otherwise the parser will just get stuck parsing the
bad result forever.

CRs-fixed: 536983
Change-Id: Ic0dedbade2d0a92ffb03e87fa73bb566bf5f1640
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 7ffe4742
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -442,6 +442,11 @@ static void transfer_results(struct kgsl_device *device,
					profile, *(ptr + buf_off++));
			if (assigns_list == NULL) {
				*log_ptr = (unsigned int) -1;

				shared_buf_inc(profile->shared_size,
					&profile->shared_tail,
					SIZE_SHARED_ENTRY(cnt));

				goto err;
			} else {
				*log_ptr = assigns_list->groupid << 16 |