video/hmdi: Clear the whole incoming buffer, not just the infoframe size
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 6 Aug 2013 19:32:16 +0000 (20:32 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 12:04:46 +0000 (14:04 +0200)
commit3b390f62674eb70522057e58b1787f2cfa2f57c1
tree244ee0a1fe00ab1102d9d3637b2d9e742e313ff4
parent61177b0e12ba162d5de206914e8703d8eb90ad19
video/hmdi: Clear the whole incoming buffer, not just the infoframe size

If the user if this API is providing a bigger buffer than the infoframe
size, it could be for a could reason. For instance it could be because
it gives the buffer that will be written to the hardware, up to the
maximum of an infoframe size.

Instead of just zeroing up to the infoframe size, let's zero the whole
incoming buffer as those extra bytes are also used to compute the
ECC and need to be 0.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/video/hdmi.c