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

Commit 9f671b7f authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: kgsl: Fix for loop iteration in CP parser



The for loop iteration when traversing the load state packets
was incorrectly calculating the packet size due to the incorrect
position of parenthesis.

CRs-Fixed: 766569
Change-Id: Idb94f05ee13b5152183452e692d7a669550aaea7
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 256995a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ static int ib_parse_load_state(unsigned int *pkt,
	 * no need to be fancy about parsing it, just save it if it looks
	 * like memory
	 */
	for (i = 0; i <= (type3_pkt_size(pkt[0] - 2)); i++) {
	for (i = 0; i <= (type3_pkt_size(pkt[0]) - 2); i++) {
		ret |= adreno_ib_add_range(process, pkt[2 + i] & 0xFFFFFFFC, 0,
				SNAPSHOT_GPU_OBJECT_GENERIC,
				ib_obj_list);