diff options
author | Imre Deak <imre.deak@intel.com> | 2020-06-04 00:10:39 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2020-06-11 15:28:45 +0300 |
commit | 8b9f3437ff5b5d059f70f9ce44d169b0cc5650ee (patch) | |
tree | d1ed0465f586c8562799e1c1317f99861417e6fd /drivers/gpu/drm | |
parent | fb7ba0c7cf92000b93b2286b4b55a75549e4a313 (diff) | |
download | linux-8b9f3437ff5b5d059f70f9ce44d169b0cc5650ee.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index cb4140dad486..469d3569d5ca 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -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; |