OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37504a3
)
drm: sti: do not iterate over the info frame array
author
Benjamin Gaignard
<benjamin.gaignard@linaro.org>
Wed, 3 Sep 2014 17:04:20 +0000
(19:04 +0200)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 17 Sep 2014 01:02:40 +0000
(11:02 +1000)
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>
drivers/gpu/drm/sti/sti_hdmi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sti/sti_hdmi.c
b/drivers/gpu/drm/sti/sti_hdmi.c
index
ef93156
..
b22968c
100644
(file)
--- 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)
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