]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:08 +0000 (09:29 -0700)
commitc8f84f037a61845643f4f86bf9ba49494a65e2c0
tree2ca97bc832ed8fdd4238a8e0ec88a22a23da200b
parente60bd2d701a57d0cd9fe53de5e1426af03874c0d
drm/dp/mst: make sure mst_primary mstb is valid in work function

commit 9254ec496a1dbdddeab50021a8138dc627a8166a upstream.

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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_dp_mst_topology.c