Initialize the fence::error member.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sun, 30 Mar 2008 19:30:43 +0000 (21:30 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sun, 30 Mar 2008 19:30:43 +0000 (21:30 +0200)
linux-core/drm_fence.c

index 0ca0c40..7c78e09 100644 (file)
@@ -445,6 +445,7 @@ int drm_fence_object_emit(struct drm_fence_object *fence, uint32_t fence_flags,
        fence->type = type;
        fence->waiting_types = 0;
        fence->signaled_types = 0;
+       fence->error = 0;
        fence->sequence = sequence;
        fence->native_types = native_types;
        if (list_empty(&fc->ring))
@@ -482,6 +483,7 @@ static int drm_fence_object_init(struct drm_device *dev, uint32_t fence_class,
        fence->signaled_types = 0;
        fence->waiting_types = 0;
        fence->sequence = 0;
+       fence->error = 0;
        fence->dev = dev;
        write_unlock_irqrestore(&fm->lock, flags);
        if (fence_flags & DRM_FENCE_FLAG_EMIT) {