drm/mst: Fix error handling during MST sideband message reception
authorImre Deak <imre.deak@intel.com>
Wed, 19 Jul 2017 11:43:28 +0000 (14:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Jul 2017 08:20:30 +0000 (10:20 +0200)
commit448421b5e93b9177c5698f0cf6f5e72d2995eeca
tree23b816082fe2fcb27527d5a48a629c91cd884227
parentef434a0c2ce765ad33026375db7d23aebd5e9532
drm/mst: Fix error handling during MST sideband message reception

Handle any error due to partial reads, timeouts etc. to avoid parsing
uninitialized data subsequently. Also bail out if the parsing itself
fails.

Cc: Dave Airlie <airlied@redhat.com>
Cc: Lyude <lyude@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lyude <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170719114330.26540-2-imre.deak@intel.com
drivers/gpu/drm/drm_dp_mst_topology.c