Skip to content

Commit 8b9f343

Browse files
committed
drm/dp_mst: Sanitize mgr->qlock locking in drm_dp_mst_wait_tx_reply()
Make the locking look symmetric with the unlocking. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200603211040.8190-2-imre.deak@intel.com
1 parent fb7ba0c commit 8b9f343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ static int drm_dp_mst_wait_tx_reply(struct drm_dp_mst_branch *mstb,
11831183
ret = wait_event_timeout(mgr->tx_waitq,
11841184
check_txmsg_state(mgr, txmsg),
11851185
(4 * HZ));
1186-
mutex_lock(&mstb->mgr->qlock);
1186+
mutex_lock(&mgr->qlock);
11871187
if (ret > 0) {
11881188
if (txmsg->state == DRM_DP_SIDEBAND_TX_TIMEOUT) {
11891189
ret = -EIO;

0 commit comments

Comments
 (0)