summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_modeset_lock.c
diff options
context:
space:
mode:
authorVille Syrjälä2018-09-28 20:04:00 +0200
committerVille Syrjälä2018-12-10 22:37:53 +0100
commitcb8ce7111117e16a87f3f55c014ccd1f19f81016 (patch)
tree234918241b8b45bda9e9250927698e47ba8c0063 /drivers/gpu/drm/drm_modeset_lock.c
parentdrm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers (diff)
downloadkernel-qcow2-linux-cb8ce7111117e16a87f3f55c014ccd1f19f81016.tar.gz
kernel-qcow2-linux-cb8ce7111117e16a87f3f55c014ccd1f19f81016.tar.xz
kernel-qcow2-linux-cb8ce7111117e16a87f3f55c014ccd1f19f81016.zip
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>
Diffstat (limited to 'drivers/gpu/drm/drm_modeset_lock.c')
0 files changed, 0 insertions, 0 deletions