summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/radeon_mem.c')
-rw-r--r--sys/dev/pci/drm/radeon_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon_mem.c b/sys/dev/pci/drm/radeon_mem.c
index 57ba3b90863..f753edc80b5 100644
--- a/sys/dev/pci/drm/radeon_mem.c
+++ b/sys/dev/pci/drm/radeon_mem.c
@@ -52,7 +52,6 @@ radeon_mem_release(struct drm_file *file_priv, struct drm_heap *heap)
/* Coalesce the entries. ugh... */
for (p = TAILQ_FIRST(heap); p != TAILQ_END(heap); p = q) {
- q = p;
while (p->file_priv == NULL &&
(q = TAILQ_NEXT(p, link)) != TAILQ_END(heap) &&
q->file_priv == NULL) {
@@ -60,6 +59,7 @@ radeon_mem_release(struct drm_file *file_priv, struct drm_heap *heap)
TAILQ_REMOVE(heap, q, link);
drm_free(q, sizeof(*q), DRM_MEM_DRIVER);
}
+ q = TAILQ_NEXT(p, link);
}
}