From: Ville Syrjälä Date: Mon, 19 Dec 2011 22:06:41 +0000 (+0200) Subject: drm: plane: mutex_unlock() was missing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10bf573bc10f50f316764418c704309b02cd1246;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm: plane: mutex_unlock() was missing Unlock the mode_config mutex if drm_plane_init() fails. Signed-off-by: Ville Syrjälä Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 255658906fcf..7cb02f63b8e3 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; }