diff options
author | saurabh <saurabh.truth@gmail.com> | 2015-12-07 01:19:21 +0530 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-12-14 11:50:57 -0500 |
commit | beb107f30ea74611286ede91f0aa93b145c476b4 (patch) | |
tree | 372bed1fcd3c74f64325b16b78c4a367ca544f8d /drivers/gpu/drm/msm/dsi | |
parent | 49d93e7861bccfb34b7adfa507511a0c030148b3 (diff) |
drm/msm/dsi: Added missing mutex_unlock
in case of failed to get iova, function was returning without releasing
the mutex. Added it.
Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi')
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index f61b88e91a8b..48f9967b4a1b 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1013,11 +1013,11 @@ static int dsi_tx_buf_alloc(struct msm_dsi_host *msm_host, int size) } ret = msm_gem_get_iova_locked(msm_host->tx_gem_obj, 0, &iova); + mutex_unlock(&dev->struct_mutex); if (ret) { pr_err("%s: failed to get iova, %d\n", __func__, ret); return ret; } - mutex_unlock(&dev->struct_mutex); if (iova & 0x07) { pr_err("%s: buf NOT 8 bytes aligned\n", __func__); |