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

commit ae491542cb upstream.

This zeroes the msg so no random stack data ends up getting
sent, it also limits the function to not accepting > 4
i2c msgs.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dave Airlie 2015-10-14 18:51:17 +10:00 • committed by Greg Kroah-Hartman
commit 510035b39c
2 changed files with 4 additions and 2 deletions