summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorIngrid Gallardo <ingridg@codeaurora.org>2015-10-21 13:11:32 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:46:58 -0700
commita09a990f187bf4eb040242ab618b605d61615269 (patch)
treefd5702e08e35d3f9cf63d1b23b97be5f3439888f /drivers/video/fbdev
parentde86bbefafbeb1d533d64f95a1686bd09e885e18 (diff)
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: Ingrid Gallardo <ingridg@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_debug.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_debug.c b/drivers/video/fbdev/msm/mdss_debug.c
index 7a81f59b1ecd..d8e40e021c23 100644
--- a/drivers/video/fbdev/msm/mdss_debug.c
+++ b/drivers/video/fbdev/msm/mdss_debug.c
@@ -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)