summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorAjay Singh Parmar <aparmar@codeaurora.org>2017-01-11 22:37:10 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-17 17:48:15 -0800
commit70a007e5b32d86aa480014748cd318f1407a4a97 (patch)
treec7d7bfa0252ca5afec68bd764b48ac2ab83ede21 /drivers/video
parent7d6cf4f28990b59d476b2a7e889632b2d62e302f (diff)
msm: mdss: edid: fix extension block resolution parsing
Fix the DTD (Detailed Timing Descriptor) parsing for block 1 (CEA extension block) to properly parse the resolution details. Change-Id: I5c1e448d5cdaf771c9e35479fe48067092c964e3 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_edid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_edid.c b/drivers/video/fbdev/msm/mdss_hdmi_edid.c
index 3adf04214d87..67b6fed0a5dc 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_edid.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_edid.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -2091,7 +2091,7 @@ static void hdmi_edid_get_display_mode(struct hdmi_edid_ctrl *edid_ctrl)
desc_offset = edid_blk1[0x02];
if (desc_offset < (EDID_BLOCK_SIZE - EDID_DTD_LEN)) {
i = 0;
- while (!edid_blk1[desc_offset]) {
+ while ((i < 4) && edid_blk1[desc_offset]) {
hdmi_edid_detail_desc(edid_ctrl,
edid_blk1+desc_offset,
&video_format);