summaryrefslogtreecommitdiff
path: root/src/i830_memory.c
diff options
context:
space:
mode:
authorWang Zhenyu <zhenyu.z.wang@intel.com>2007-04-19 17:30:28 +0800
committerWang Zhenyu <zhenyu.z.wang@intel.com>2007-04-19 17:30:28 +0800
commit378ceea3d9ddbec7a08ac2f07f9a8cd9cf3cef36 (patch)
tree6a7086cfeda1735ff46c98a8061543d047597ede /src/i830_memory.c
parentdb4b9e18810990e8900bdf54aa3091b876ea2658 (diff)
Fix mem list order and remove extra unbind call when free memory
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r--src/i830_memory.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 315f4ba6..20b33bca 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -184,8 +184,6 @@ i830_free_memory(ScrnInfoPtr pScrn, i830_memory *mem)
if (mem == NULL)
return;
- i830_unbind_memory(pScrn, mem);
-
/* Disconnect from the list of allocations */
if (mem->prev != NULL)
mem->prev->next = mem->next;
@@ -368,7 +366,7 @@ i830_allocate_aperture(ScrnInfoPtr pScrn, const char *name,
mem->prev = scan;
mem->next = scan->next;
scan->next = mem;
- mem->next->prev = scan;
+ mem->next->prev = mem;
return mem;
}