Commit 8b9f3437 authored by Imre Deak's avatar Imre Deak
Browse files

drm/dp_mst: Sanitize mgr->qlock locking in drm_dp_mst_wait_tx_reply()

parent fb7ba0c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1183,7 +1183,7 @@ static int drm_dp_mst_wait_tx_reply(struct drm_dp_mst_branch *mstb,
	ret = wait_event_timeout(mgr->tx_waitq,
				 check_txmsg_state(mgr, txmsg),
				 (4 * HZ));
	mutex_lock(&mstb->mgr->qlock);
	mutex_lock(&mgr->qlock);
	if (ret > 0) {
		if (txmsg->state == DRM_DP_SIDEBAND_TX_TIMEOUT) {
			ret = -EIO;