summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2011-12-20 00:06:41 +0200
committerDave Airlie <airlied@redhat.com>2011-12-20 10:02:47 +0000
commit10bf573bc10f50f316764418c704309b02cd1246 (patch)
tree5862b3c0dab39c61e6467c93a151400d86284b80 /drivers/gpu/drm/drm_crtc.c
parent64760a4ee6e0d01c0019495a6513229259d86296 (diff)
downloadop-kernel-dev-10bf573bc10f50f316764418c704309b02cd1246.zip
op-kernel-dev-10bf573bc10f50f316764418c704309b02cd1246.tar.gz
drm: plane: mutex_unlock() was missing
Unlock the mode_config mutex if drm_plane_init() fails. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 2556589..7cb02f6 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -566,6 +566,7 @@ int drm_plane_init(struct drm_device *dev, struct drm_plane *plane,
if (!plane->format_types) {
DRM_DEBUG_KMS("out of memory when allocating plane\n");
drm_mode_object_put(dev, &plane->base);
+ mutex_unlock(&dev->mode_config.mutex);
return -ENOMEM;
}
OpenPOWER on IntegriCloud