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

Commit da66baa9 authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata
Browse files

drm/msm/dsi-staging: avoid out of bounds access due to misplaced increment



Move increment counter post print statement to avoid
out of bounds access.

Change-Id: I844b0ddfcd09f3f92b9c9831a66a034ec1d03724
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
parent 2fed71ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,13 +111,13 @@ static int dsi_pwr_parse_supply_node(struct device_node *root,
			regs->vregs[i].post_off_sleep = tmp;
		}

		++i;
		pr_debug("[%s] minv=%d maxv=%d, en_load=%d, dis_load=%d\n",
			 regs->vregs[i].vreg_name,
			 regs->vregs[i].min_voltage,
			 regs->vregs[i].max_voltage,
			 regs->vregs[i].enable_load,
			 regs->vregs[i].disable_load);
		++i;
	}

error: