mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 06:32:50 +00:00
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:
parent
aa1b0e59d3
commit
9999f105e7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user