summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-06-29 15:22:28 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-06-29 15:22:28 +0200
commita27af4c4a665864df09123f177ca7269e48f6171 (patch)
treef9a148dff91842f5ba635051f3544e48d28075a3
parent00f1a66f22d52c212bb9334a0103a4785af69bc1 (diff)
downloaddrm-a27af4c4a665864df09123f177ca7269e48f6171.tar.gz
Avoid hitting BUG() for kernel-only fence objects.
-rw-r--r--linux-core/drm_fence.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/drm_fence.c b/linux-core/drm_fence.c
index ace70d51..5215feb6 100644
--- a/linux-core/drm_fence.c
+++ b/linux-core/drm_fence.c
@@ -450,6 +450,12 @@ static int drm_fence_object_init(drm_device_t * dev, uint32_t class,
write_lock_irqsave(&fm->lock, flags);
INIT_LIST_HEAD(&fence->ring);
+
+ /*
+ * Avoid hitting BUG() for kernel-only fence objects.
+ */
+
+ INIT_LIST_HEAD(&fence->base.list);
fence->class = class;
fence->type = type;
fence->flush_mask = 0;