OSDN Git Service

Remove buffer object user list check in drm_bo_destroy_unlocked
authorJesse Barnes <jesse.barnes@intel.com>
Tue, 25 Sep 2007 23:15:48 +0000 (16:15 -0700)
committerJesse Barnes <jesse.barnes@intel.com>
Tue, 25 Sep 2007 23:15:48 +0000 (16:15 -0700)
In the case of driver allocated buffers, there won't necessarily be a user list
associated with the buffer, so don't bug out on an empty list.

linux-core/drm_bo.c

index 89062f1..ea93ed1 100644 (file)
@@ -417,7 +417,6 @@ static void drm_bo_destroy_locked(struct drm_buffer_object * bo)
 
                atomic_dec(&bm->count);
 
-               BUG_ON(!list_empty(&bo->base.list));
                drm_ctl_free(bo, sizeof(*bo), DRM_MEM_BUFOBJ);
 
                return;