drm/dp/mst: make mst i2c transfer code more robust.
authorDave Airlie <airlied@gmail.com>
Wed, 14 Oct 2015 08:51:17 +0000 (18:51 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 14 Oct 2015 23:06:20 +0000 (09:06 +1000)
commitae491542cbbbcca0ec8938c37d4079a985e58440
treee0e7c931aee2edae9b3ce5a9689106557204de8c
parentbc8c131ccdd62d4ed4f33c6b50f92907e7c32dee
drm/dp/mst: make mst i2c transfer code more robust.

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@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_mst_topology.c
include/drm/drm_dp_mst_helper.h