OSDN Git Service

Free correct block in free_block (K. Rasche)
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 2 Oct 2002 07:55:27 +0000 (07:55 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 2 Oct 2002 07:55:27 +0000 (07:55 +0000)
shared-core/radeon_mem.c
shared/radeon_mem.c

index d77c60b..5c07c1a 100644 (file)
@@ -118,7 +118,7 @@ static void free_block( struct mem_block *p )
                p->size += q->size;
                p->next = q->next;
                p->next->prev = p;
-               DRM_FREE(p);
+               DRM_FREE(q);
        }
 
        if (p->prev->pid == 0) {
index d77c60b..5c07c1a 100644 (file)
@@ -118,7 +118,7 @@ static void free_block( struct mem_block *p )
                p->size += q->size;
                p->next = q->next;
                p->next->prev = p;
-               DRM_FREE(p);
+               DRM_FREE(q);
        }
 
        if (p->prev->pid == 0) {