diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-10-19 16:58:00 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-10-19 16:58:00 +0200 |
commit | e8ba62db722eb0b915377269d7e1c3a039928669 (patch) | |
tree | d45fe5a5eeff6105a1056a9fd970d6f28fb3089b /linux-core/i915_fence.c | |
parent | e172945d668f1de1243ac2ae91ab77f3b2bda40a (diff) |
Make sure delayed delete list is empty on lastclose.
Fix some refcounting errors.
Fix some error messages.
Diffstat (limited to 'linux-core/i915_fence.c')
-rw-r--r-- | linux-core/i915_fence.c | 3 |
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; |