[PATCH] drm/dp/mst: make mst i2c transfer code more robust.

2015-10-14 Thread Dave Airlie
This zeroes the msg so no random stack data ends up getting sent, it also limits the function to not accepting > 4 i2c msgs. Cc: stable at vger.kernel.org Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_dp_mst_topology.c | 3 ++- include/drm/drm_dp_mst_helper.h | 3 ++- 2 files changed,

[PATCH] drm/dp/mst: make mst i2c transfer code more robust.

2015-10-14 Thread Daniel Vetter
On Wed, Oct 14, 2015 at 06:51:17PM +1000, Dave Airlie wrote: > This zeroes the msg so no random stack data ends up getting > sent, it also limits the function to not accepting > 4 > i2c msgs. > > Cc: stable at vger.kernel.org > Signed-off-by: Dave Airlie Reviewed-by: Daniel Vetter > --- > dri