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>
This commit is contained in:
parent
f1a6d3b017
commit
326db38d9c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue