drm/dp/mst: make sure mst_primary mstb is valid in work function
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Jun 2015 07:31:59 +0000 (17:31 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Jun 2015 00:23:50 +0000 (10:23 +1000)
commit9254ec496a1dbdddeab50021a8138dc627a8166a
tree22cdb39dd787146551e0f36ba6749e5cf7972a10
parentce8e394278e2a487df254d87d049bd3531f48993
drm/dp/mst: make sure mst_primary mstb is valid in work function

This validates the mst_primary under the lock, and then calls
into the check and send function. This makes the code a lot
easier to understand the locking rules in.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_mst_topology.c