drm/i915/sdvo: Don't write stack garbage into the hbuf
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 9 Apr 2019 14:40:53 +0000 (17:40 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Jun 2019 17:41:27 +0000 (20:41 +0300)
commit7f668346e70fcf1b7b56a9c31fba5070d210995b
tree49063bf2a55232a614d86fba8dd8b65444fa138a
parent700bbf83eabd26f918a783f69ed2a85fcb28bf7f
drm/i915/sdvo: Don't write stack garbage into the hbuf

Pass the length returned by hdmi_infoframe_pack_only() to
intel_sdvo_write_infoframe() so that we don't end up writing
stack garbage into the hbuf.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190409144054.24561-7-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_sdvo.c