summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_mem.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 01:06:43 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 01:06:43 +0000
commit313c597b50468ead61d9fe90b33a6175b70f43f0 (patch)
tree038e342103315ea82dda4ab06a39c07f457a3d9e /sys/dev/pci/drm/radeon_mem.c
parent5c5d79aa95d5a0f2c46c6cfe590459dee512e10f (diff)
Fix slight logic error in a previous commit.
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);
}
}