]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp/mst: Validate REMOTE_I2C_READ harder
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Sep 2018 18:04:00 +0000 (21:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 10 Dec 2018 21:37:53 +0000 (23:37 +0200)
commitf8232ffe777c4fe827e65ba60f820c96017e659c
tree234918241b8b45bda9e9250927698e47ba8c0063
parent9186b2f97cb66e6ae105a7daf82ef8104330c701
drm/dp/mst: Validate REMOTE_I2C_READ harder

Make sure i2c msgs we're asked to transfer conform to the
requirements of REMOTE_I2C_READ. We were only checking that the
last message is a read, but we must also check that the preceding
messages are all writes. Also check that the length of each
message isn't too long.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180928180403.22499-2-ville.syrjala@linux.intel.com
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
drivers/gpu/drm/drm_dp_mst_topology.c