]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit289a2b4a8e1a7bdc4bac2b5c9df7fd534013e673
tree244ee0a1fe00ab1102d9d3637b2d9e742e313ff4
parent8710dc38daafbdb9fa4e546242aee4fd05de0572
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