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

Commit f64e474f 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 for loop iteration in CP parser"

parents b8543af3 9f671b7f
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);