video/hdmi: Pass buffer size to infoframe unpack functions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 20 Sep 2018 18:51:29 +0000 (21:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 1 Oct 2018 18:56:14 +0000 (21:56 +0300)
commit480b8b3e42c3d959f8b6346c24c088eb70ef9fc2
tree6eaaad4b82359ab2463823bccd2cbe12eabe8deb
parentf26e1de5ec487c040efa845f280d110c29baea32
video/hdmi: Pass buffer size to infoframe unpack functions

To make sure the infoframe unpack functions don't end up examining
stack garbage or oopsing, let's pass in the size of the buffer.

v2: Convert tda1997x.c as well (kbuild test robot)

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: linux-media@vger.kernel.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180920185145.1912-3-ville.syrjala@linux.intel.com
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
drivers/media/i2c/adv7511.c
drivers/media/i2c/adv7604.c
drivers/media/i2c/adv7842.c
drivers/media/i2c/tc358743.c
drivers/media/i2c/tda1997x.c
drivers/video/hdmi.c
include/linux/hdmi.h