diff options
| author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2014-09-03 13:04:20 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2014-09-16 21:02:40 -0400 |
| commit | 7dc9250f1d08f470f8d4e585a2eaeb951d4356be (patch) | |
| tree | 1753bac2a6b69131ef751f7fc7a1fff8df1f61ee /drivers/gpu | |
| parent | 37504a3be90b69438426d74ccf467a9fe192932b (diff) | |
drm: sti: do not iterate over the info frame array
avi infoframe is a 13 bytes array, do not read after this limite.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/sti/sti_hdmi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index ef93156a69c6..b22968c08d1f 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c | |||
| @@ -298,7 +298,6 @@ static int hdmi_avi_infoframe_config(struct sti_hdmi *hdmi) | |||
| 298 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD2(HDMI_IFRAME_SLOT_AVI)); | 298 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD2(HDMI_IFRAME_SLOT_AVI)); |
| 299 | 299 | ||
| 300 | val = frame[0xC]; | 300 | val = frame[0xC]; |
| 301 | val |= frame[0xD] << 8; | ||
| 302 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD3(HDMI_IFRAME_SLOT_AVI)); | 301 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD3(HDMI_IFRAME_SLOT_AVI)); |
| 303 | 302 | ||
| 304 | /* Enable transmission slot for AVI infoframe | 303 | /* Enable transmission slot for AVI infoframe |
