From 85e1fa55066783d2748993810708dee6db7a4993 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Marchesin?= Date: Wed, 13 Jul 2011 11:59:10 -0700 Subject: [PATCH] i915g: don't try to check if a NULL buffer is busy. --- src/gallium/winsys/i915/drm/i915_drm_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/winsys/i915/drm/i915_drm_buffer.c b/src/gallium/winsys/i915/drm/i915_drm_buffer.c index 89d8e89..ac66af3 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); } -- 2.7.4