]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit131c5c0cb80b84866b278fd303a2b87214a5cb26
tree6eaaad4b82359ab2463823bccd2cbe12eabe8deb
parent52908633d36c82aa17cdf16ee1ed8b39cede89db
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