summaryrefslogtreecommitdiff
path: root/linux-core/i915_fence.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-19 17:00:03 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-19 17:00:03 +0200
commit5de4665747c441b2a8e82b020cc386f2d974499d (patch)
tree1b3b4103bb13e5d9797251926f33582bdb89ee12 /linux-core/i915_fence.c
parente22b04f807b9869c8c89b6316214517f5da13322 (diff)
parente8ba62db722eb0b915377269d7e1c3a039928669 (diff)
Importing fixes from drm-ttm-0-2-branch
Diffstat (limited to 'linux-core/i915_fence.c')
-rw-r--r--linux-core/i915_fence.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/i915_fence.c b/linux-core/i915_fence.c
index fc8ab761..2182604c 100644
--- a/linux-core/i915_fence.c
+++ b/linux-core/i915_fence.c
@@ -124,6 +124,9 @@ int i915_fence_emit_sequence(drm_device_t * dev, uint32_t flags,
uint32_t * sequence, uint32_t * native_type)
{
drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
+ if (!dev_priv)
+ return -EINVAL;
+
i915_emit_irq(dev);
*sequence = (uint32_t) dev_priv->counter;
*native_type = DRM_FENCE_TYPE_EXE;