]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6791ce5c55de85405f67872a4f9d0c1dbd71772
tree22cdb39dd787146551e0f36ba6749e5cf7972a10
parentcf63bbf4ada08f92614d67e1deddfc8e6783730e
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