summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorWei Yongjun2013-04-24 04:48:23 +0200
committerThierry Reding2013-05-25 12:32:50 +0200
commitb6f2056f3b259960b0cb6a6cf440b89f2567d586 (patch)
tree5f8669d56b4606eb54f92abe54b70e3be3e6a3ad /drivers/gpu/host1x
parentdrm/tegra: Honor pixel-format changes (diff)
downloadkernel-qcow2-linux-b6f2056f3b259960b0cb6a6cf440b89f2567d586.tar.gz
kernel-qcow2-linux-b6f2056f3b259960b0cb6a6cf440b89f2567d586.tar.xz
kernel-qcow2-linux-b6f2056f3b259960b0cb6a6cf440b89f2567d586.zip
drm/tegra: fix missing unlock on error
Add the missing unlock before return from function host1x_drm_init() and host1x_drm_exit() in the error handling case. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/drm/drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c
index 78b07db37cf8..66629f398f11 100644
--- a/drivers/gpu/host1x/drm/drm.c
+++ b/drivers/gpu/host1x/drm/drm.c
@@ -148,6 +148,7 @@ int host1x_drm_init(struct host1x_drm *host1x, struct drm_device *drm)
dev_err(host1x->dev,
"DRM setup failed for %s: %d\n",
dev_name(client->dev), err);
+ mutex_unlock(&host1x->clients_lock);
return err;
}
}
@@ -175,6 +176,7 @@ int host1x_drm_exit(struct host1x_drm *host1x)
dev_err(host1x->dev,
"DRM cleanup failed for %s: %d\n",
dev_name(client->dev), err);
+ mutex_unlock(&host1x->clients_lock);
return err;
}
}