video: tegra: dc: Initialize hdmi vic length
Pankaj Dabade [Fri, 17 Jan 2014 14:01:53 +0000 (19:01 +0530)]
Initialize HDMI vic length to avoid reading garbage.

bug 1400878

Change-Id: I4b91fb2c97c2650bb74788887965bbb35549fb6b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/357167
(cherry picked from commit 5882be672a7f0c1928b1c592827785dc730fbcb6)
Reviewed-on: http://git-master/r/365897
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

drivers/video/tegra/dc/edid.c

index a0da283..ad9fba3 100644 (file)
@@ -215,8 +215,8 @@ int tegra_edid_parse_ext_block(const u8 *raw, int idx,
                pr_err("%s: invalid argument\n", __func__);
                return -EINVAL;
        }
-
        edid->support_audio = 0;
+       edid->hdmi_vic_len = 0;
        ptr = &raw[0];
 
        /* If CEA 861 block get info for eld struct */