From a71d78809eeb6366781717ae9dee3e339c88a49b Mon Sep 17 00:00:00 2001 From: Ajay Singh Parmar Date: Sat, 2 Feb 2013 22:47:38 +0530 Subject: [PATCH] msm_fb: hdmi: hdmi 3d length check This change fixes a case where the length of 3d data is not properly used which could have resulted in wrong 3d data parsing. CRs-Fixed: 445505 Change-Id: Id285204bdb8c2d881becaa5b07b973eba4240d93 Signed-off-by: Ajay Singh Parmar --- drivers/video/msm/external_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/msm/external_common.c b/drivers/video/msm/external_common.c index a720143a01d0..408a1eba117f 100644 --- a/drivers/video/msm/external_common.c +++ b/drivers/video/msm/external_common.c @@ -1589,7 +1589,8 @@ static void hdmi_edid_get_display_vsd_3d_mode(const uint8 *data_buf, struct hdmi_disp_mode_list_type *disp_mode_list, uint32 num_og_cea_blocks) { - uint8 len, offset, present_multi_3d, hdmi_vic_len, hdmi_3d_len; + uint8 len, offset, present_multi_3d, hdmi_vic_len; + int hdmi_3d_len; uint16 structure_all, structure_mask; const uint8 *vsd = num_og_cea_blocks ? hdmi_edid_find_block(data_buf+0x80, DBC_START_OFFSET,