diff options
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_resource.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 596cef3c9189..292c988c54ea 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | |||
@@ -351,7 +351,7 @@ static void vmw_user_context_free(struct vmw_resource *res) | |||
351 | container_of(res, struct vmw_user_context, res); | 351 | container_of(res, struct vmw_user_context, res); |
352 | struct vmw_private *dev_priv = res->dev_priv; | 352 | struct vmw_private *dev_priv = res->dev_priv; |
353 | 353 | ||
354 | kfree(ctx); | 354 | ttm_base_object_kfree(ctx, base); |
355 | ttm_mem_global_free(vmw_mem_glob(dev_priv), | 355 | ttm_mem_global_free(vmw_mem_glob(dev_priv), |
356 | vmw_user_context_size); | 356 | vmw_user_context_size); |
357 | } | 357 | } |
@@ -1143,7 +1143,7 @@ static void vmw_user_surface_free(struct vmw_resource *res) | |||
1143 | kfree(srf->offsets); | 1143 | kfree(srf->offsets); |
1144 | kfree(srf->sizes); | 1144 | kfree(srf->sizes); |
1145 | kfree(srf->snooper.image); | 1145 | kfree(srf->snooper.image); |
1146 | kfree(user_srf); | 1146 | ttm_base_object_kfree(user_srf, base); |
1147 | ttm_mem_global_free(vmw_mem_glob(dev_priv), size); | 1147 | ttm_mem_global_free(vmw_mem_glob(dev_priv), size); |
1148 | } | 1148 | } |
1149 | 1149 | ||
@@ -1571,7 +1571,7 @@ static void vmw_user_dmabuf_destroy(struct ttm_buffer_object *bo) | |||
1571 | { | 1571 | { |
1572 | struct vmw_user_dma_buffer *vmw_user_bo = vmw_user_dma_buffer(bo); | 1572 | struct vmw_user_dma_buffer *vmw_user_bo = vmw_user_dma_buffer(bo); |
1573 | 1573 | ||
1574 | kfree(vmw_user_bo); | 1574 | ttm_base_object_kfree(vmw_user_bo, base); |
1575 | } | 1575 | } |
1576 | 1576 | ||
1577 | static void vmw_user_dmabuf_release(struct ttm_base_object **p_base) | 1577 | static void vmw_user_dmabuf_release(struct ttm_base_object **p_base) |
@@ -1759,7 +1759,7 @@ static void vmw_user_stream_free(struct vmw_resource *res) | |||
1759 | container_of(res, struct vmw_user_stream, stream.res); | 1759 | container_of(res, struct vmw_user_stream, stream.res); |
1760 | struct vmw_private *dev_priv = res->dev_priv; | 1760 | struct vmw_private *dev_priv = res->dev_priv; |
1761 | 1761 | ||
1762 | kfree(stream); | 1762 | ttm_base_object_kfree(stream, base); |
1763 | ttm_mem_global_free(vmw_mem_glob(dev_priv), | 1763 | ttm_mem_global_free(vmw_mem_glob(dev_priv), |
1764 | vmw_user_stream_size); | 1764 | vmw_user_stream_size); |
1765 | } | 1765 | } |