msm: mdss: fix overflow while copying config id
Fix possible overflow while copying config id in DSI driver. Change-Id: I0432ddc43c62f5b25a8197f2fc06ea45e4c2738a Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
10ce327b29
commit
526b0d9c33
1 changed files with 1 additions and 1 deletions
|
@ -2666,7 +2666,7 @@ static struct device_node *mdss_dsi_find_panel_of_node(
|
|||
str1 = strnchr(str2, strlen(str2), ':');
|
||||
if (str1) {
|
||||
for (i = 0; ((str2 + i) < str1) &&
|
||||
i < MDSS_MAX_PANEL_LEN; i++)
|
||||
i < (MDSS_MAX_PANEL_LEN - 1); i++)
|
||||
cfg_np_name[i] = *(str2 + i);
|
||||
if ((i >= 0)
|
||||
&& (i < MDSS_MAX_PANEL_LEN))
|
||||
|
|
Loading…
Add table
Reference in a new issue