summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhaval Patel <pdhaval@codeaurora.org>2015-04-09 10:18:52 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:40:22 -0700
commit326db38d9c10a4246bc20c0423412573db97c9af (patch)
treef030a64da19b491ad4396d3eb290d3b651ff74c4
parentf1a6d3b01703bcf8e7db51393107bff416f25359 (diff)
msm: mdss: dsi: initialize the panel_name array to null
Uninitialized panel_name array can cause the invalid string comparison between "NON_PANEL" and uninitialized value. Fix this by initialized the array with null string. CRs-fixed: 790201 Change-Id: I18486db909e5d41e39b5e6052c8c7c760ae8d4b4 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi.c b/drivers/video/fbdev/msm/mdss_dsi.c
index 45b317502949..576272b13c68 100644
--- a/drivers/video/fbdev/msm/mdss_dsi.c
+++ b/drivers/video/fbdev/msm/mdss_dsi.c
@@ -1531,7 +1531,7 @@ static struct device_node *mdss_dsi_find_panel_of_node(
{
int len, i;
int ctrl_id = pdev->id - 1;
- char panel_name[MDSS_MAX_PANEL_LEN];
+ char panel_name[MDSS_MAX_PANEL_LEN] = "";
char ctrl_id_stream[3] = "0:";
char *stream = NULL, *pan = NULL;
struct device_node *dsi_pan_node = NULL, *mdss_node = NULL;