From: Stéphane Marchesin Date: Wed, 13 Jul 2011 18:59:10 +0000 (-0700) Subject: i915g: don't try to check if a NULL buffer is busy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85e1fa55066783d2748993810708dee6db7a4993;p=mesa.git i915g: don't try to check if a NULL buffer is busy. --- 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); }