i915g: don't try to check if a NULL buffer is busy.

This commit is contained in:
Stéphane Marchesin 2011-07-13 11:59:10 -07:00
parent f7a85f603b
commit 85e1fa5506
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}