Skip to contentSkip to conversation

drm: sti: do not iterate over the info frame array

PATCH New Benjamin Gaignard 1 participant 1 message Sep 3, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: sti: do not iterate over the info frame array

avi infoframe is a 13 bytes array, do not read after this limite.

---
 drivers/gpu/drm/sti/sti_hdmi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/sti/sti_hdmi.c +0 -1
index 284e541..90ee20a 100644
@@ -298,7 +298,6 @@ static int hdmi_avi_infoframe_config(struct sti_hdmi *hdmi)
 	hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD2(HDMI_IFRAME_SLOT_AVI));
 
 	val = frame[0xC];
-	val |= frame[0xD] << 8;
 	hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD3(HDMI_IFRAME_SLOT_AVI));
 
 	/* Enable transmission slot for AVI infoframe
Signature · 1 line
1.9.1