drm/msm: remove unbalanced mutex unlock
authorDaniel Mack <daniel@zonque.org>
Thu, 3 May 2018 12:00:55 +0000 (14:00 +0200)
committerRob Clark <robdclark@gmail.com>
Sun, 3 Jun 2018 20:49:00 +0000 (16:49 -0400)
This regression stems from 0e08270a1f01 ("drm/msm: Separate locking of
buffer resources from struct_mutex").

Signed-off-by: Daniel Mack <daniel@zonque.org>
Cc: Sushmita Susheelendra <ssusheel@codeaurora.org>
Cc: Rob Clark <rclark@redhat.com>
Fixes: 0e08270a1f01 ("drm/msm: Separate locking of buffer resources from struct_mutex")
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c

index 8baba30d6c659cfde69c52cd69b2adc3203c54a9..c4d23d4c36318b0ada8a4867c8088487bd3e1d69 100644 (file)
@@ -1036,7 +1036,6 @@ static int dsi_tx_buf_alloc(struct msm_dsi_host *msm_host, int size)
 
                ret = msm_gem_get_iova(msm_host->tx_gem_obj,
                                priv->kms->aspace, &iova);
-               mutex_unlock(&dev->struct_mutex);
                if (ret) {
                        pr_err("%s: failed to get iova, %d\n", __func__, ret);
                        return ret;