aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-07-13 11:59:10 -0700
committerStéphane Marchesin <[email protected]>2011-07-13 11:59:10 -0700
commit85e1fa55066783d2748993810708dee6db7a4993 (patch)
tree893196405a1ca334aad6073222cb1fe3ea170c56 /src/gallium
parentf7a85f603b0da0770c27b200bff6e239e3aeae95 (diff)
i915g: don't try to check if a NULL buffer is busy.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/i915/drm/i915_drm_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/winsys/i915/drm/i915_drm_buffer.c b/src/gallium/winsys/i915/drm/i915_drm_buffer.c
index 89d8e89e6a7..ac66af333df 100644
--- a/src/gallium/winsys/i915/drm/i915_drm_buffer.c
+++ b/src/gallium/winsys/i915/drm/i915_drm_buffer.c
@@ -218,6 +218,8 @@ i915_drm_buffer_is_busy(struct i915_winsys *iws,
struct i915_winsys_buffer *buffer)
{
struct i915_drm_buffer* i915_buffer = i915_drm_buffer(buffer);
+ if (!i915_buffer)
+ return FALSE;
return drm_intel_bo_busy(i915_buffer->bo);
}