drm/i915/sdvo: Don't unpack stack garbage
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 9 Apr 2019 14:40:52 +0000 (17:40 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Jun 2019 17:40:53 +0000 (20:40 +0300)
commit700bbf83eabd26f918a783f69ed2a85fcb28bf7f
tree45c7c74e479979ed12e52dbe005847cce25d21bd
parentb5716a4efe5cbaabcea2027656367ac5ba5addf9
drm/i915/sdvo: Don't unpack stack garbage

Pass the length returned by intel_sdvo_read_infoframe() to
hdmi_infoframe_unpack() so that we don't try to unpack any
leftover stack garbage.

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