summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-01-17 13:04:23 +0000
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2008-03-12 10:11:49 +0100
commit32625774072f905d15024cc40ce7fd364d9ee4cd (patch)
tree623d9f53ca053ecba02b0c89235a80ec54e24d7b
parentc0a1cd052ac44d1b342fa3f26afe1bd21d92b194 (diff)
Add error message
-rw-r--r--linux-core/drm_fence.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_fence.c b/linux-core/drm_fence.c
index 9d80327f..0ca0c408 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -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);