Fix mem list order and remove extra unbind call when free memory
This commit is contained in:
parent
db4b9e1881
commit
378ceea3d9
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue