summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon/radeon_object.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-05-01 13:30:23 +1000
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:34:58 +1000
commitec4d74df8aecc67eda7caba247e06f761595bb2b (patch)
treee39ce825c2f03a7fa5bbb3dd59f23892669504d0 /sys/dev/pci/drm/radeon/radeon_object.c
parentf13b3828b7f4eb97e80578258ec2850516dffd23 (diff)
kfree -> free
Diffstat (limited to 'sys/dev/pci/drm/radeon/radeon_object.c')
-rw-r--r--sys/dev/pci/drm/radeon/radeon_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_object.c b/sys/dev/pci/drm/radeon/radeon_object.c
index d78b455c2cc..e204a622945 100644
--- a/sys/dev/pci/drm/radeon/radeon_object.c
+++ b/sys/dev/pci/drm/radeon/radeon_object.c
@@ -65,7 +65,7 @@ static void radeon_ttm_bo_destroy(struct ttm_buffer_object *tbo)
radeon_bo_clear_surface_reg(bo);
radeon_bo_clear_va(bo);
drm_gem_object_release(&bo->gem_base);
- kfree(bo);
+ free(bo, M_DRM);
}
bool radeon_ttm_bo_is_radeon_bo(struct ttm_buffer_object *bo)
@@ -136,7 +136,7 @@ int radeon_bo_create(struct radeon_device *rdev,
return -ENOMEM;
r = drm_gem_object_init(rdev->ddev, &bo->gem_base, size);
if (unlikely(r)) {
- kfree(bo);
+ free(bo, M_DRM);
return r;
}
bo->rdev = rdev;