drm/msm: fix deadlock in bo create fail path

We already hold struct_mutex here.

Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Rob Clark 2014-02-04 14:17:32 -05:00
parent aa1b0e59d3
commit 9999f105e7

View 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);
}