summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2021-07-09 16:18:39 +0300
committerChristian König <christian.koenig@amd.com>2022-01-26 17:23:51 +0300
commitde3688e469b08be958914674e8b01cb0cea42388 (patch)
tree6f0758e36daa479d3cecc175880c29968fe4499c /drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c
parent2343bcdb4747d4f418a4daf2e898b94f86c24a59 (diff)
downloadlinux-de3688e469b08be958914674e8b01cb0cea42388.tar.xz
drm/ttm: add ttm_resource_fini v2
Make sure we call the common cleanup function in all implementations of the resource manager. v2: fix missing case in i915, rudimentary kerneldoc, should be filled in more when we add more functionality Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220124122514.1832-2-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c b/drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c
index b0005b03a617..a64188c7268d 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c
@@ -49,6 +49,7 @@ static int vmw_sys_man_alloc(struct ttm_resource_manager *man,
static void vmw_sys_man_free(struct ttm_resource_manager *man,
struct ttm_resource *res)
{
+ ttm_resource_fini(man, res);
kfree(res);
}