drm/dp/mst: take lock around looking up the branch device on hpd irq

[ Upstream commit 9eb1e57f56 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Dave Airlie 2015-06-22 14:40:44 +10:00 • committed by Sasha Levin
commit c44ed568ae