drm/msm: fix deadlock in bo create fail path
authorRob Clark <robdclark@gmail.com>
Tue, 4 Feb 2014 19:17:32 +0000 (14:17 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 5 Feb 2014 16:24:42 +0000 (11:24 -0500)
We already hold struct_mutex here.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem.c

index d8d60c9..3da8264 100644 (file)
@@ -644,7 +644,7 @@ struct drm_gem_object *msm_gem_new(struct drm_device *dev,
 
 fail:
        if (obj)
-               drm_gem_object_unreference_unlocked(obj);
+               drm_gem_object_unreference(obj);
 
        return ERR_PTR(ret);
 }