drm/dp/mst: take lock around looking up the branch device on hpd irq
authorDave Airlie <airlied@redhat.com>
Mon, 22 Jun 2015 04:40:44 +0000 (14:40 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Jun 2015 00:32:12 +0000 (10:32 +1000)
commit9eb1e57f564d4e6e10991402726cc83fe0b9172f
treeabe327d3a99e89347d22bcc5c61958fd915f70f2
parent9254ec496a1dbdddeab50021a8138dc627a8166a
drm/dp/mst: take lock around looking up the branch device on hpd irq

If we are doing an MST transaction and we've gotten HPD and we
lookup the device from the incoming msg, we should take the mgr
lock around it, so that mst_primary and mstb->ports are valid.

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