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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_mem.c b/sys/dev/pci/drm/radeon_mem.c
index f753edc80b5..d095959bde7 100644
--- a/sys/dev/pci/drm/radeon_mem.c
+++ b/sys/dev/pci/drm/radeon_mem.c
@@ -57,7 +57,7 @@ radeon_mem_release(struct drm_file *file_priv, struct drm_heap *heap)
q->file_priv == NULL) {
p->size += q->size;
TAILQ_REMOVE(heap, q, link);
- drm_free(q, sizeof(*q), DRM_MEM_DRIVER);
+ drm_free(q);
}
q = TAILQ_NEXT(p, link);
}
@@ -75,7 +75,7 @@ radeon_mem_takedown(struct drm_heap *heap)
while ((p = TAILQ_FIRST(heap)) != NULL) {
TAILQ_REMOVE(heap, p, link);
- drm_free(p, sizeof(*p), DRM_MEM_DRIVER);
+ drm_free(p);
}
}