mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 11:38:13 +02:00
Add error message
This commit is contained in:
parent
c0a1cd052a
commit
3262577407
1 changed files with 3 additions and 1 deletions
|
|
@ -520,8 +520,10 @@ int drm_fence_object_create(struct drm_device *dev, uint32_t fence_class,
|
|||
struct drm_fence_manager *fm = &dev->fm;
|
||||
|
||||
fence = drm_ctl_calloc(1, sizeof(*fence), DRM_MEM_FENCE);
|
||||
if (!fence)
|
||||
if (!fence) {
|
||||
DRM_ERROR("Out of memory creating fence object\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
ret = drm_fence_object_init(dev, fence_class, type, flags, fence);
|
||||
if (ret) {
|
||||
drm_fence_usage_deref_unlocked(&fence);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue