]> 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)
commit0513f08f2b8848e6fc334187cb0583cadad3aa5d
tree6eaaad4b82359ab2463823bccd2cbe12eabe8deb
parent2f1d86effaea6cc02c4ac0ea1d7f8caf9a767b8c
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