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

Commit cfffd640 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Fix profiling bounds check to take all data



Depending on if there was white space after the last element passed
in the profiler might omit adding the last element. Ensure this
element gets added to the list of performance counters requested.

Change-Id: I4be9b6abfa3c22e462296c85801e8798f7b9af57
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 46fe9155
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -717,10 +717,10 @@ static ssize_t profile_assignments_write(struct file *filep,
	buf[len] = '\0';

	/* parse file buf and add(remove) to(from) appropriate lists */
	while (1) {
	while (pbuf) {
		pbuf = _parse_next_assignment(adreno_dev, pbuf, &groupid,
				&countable, &remove_assignment);
		if (pbuf == NULL)
		if (groupid < 0 || countable < 0)
			break;

		if (remove_assignment)