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

Commit 5a4a920c authored by Ingrid Gallardo's avatar Ingrid Gallardo
Browse files

msm: mdss: fix crash when read perf mode debugfs



Fix crash when read the perf_mode debugfs property
that was accessing memory beyond the size of the
array.

Change-Id: I82c6aaf263ea9f688856eade009008c10ec65e36
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent b06f2ad5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -776,8 +776,6 @@ static ssize_t mdss_debug_perf_mode_read(struct file *file,
	if (*ppos)
		return 0;	/* the end */

	buf[count] = 0;

	len = snprintf(buf, sizeof(buf), "min_mdp_clk %lu min_bus_vote %llu\n",
	perf_tune->min_mdp_clk, perf_tune->min_bus_vote);
	if (len < 0)