drm/vmwgfx/ttm: fix the non-THP cleanup path.
authorDave Airlie <airlied@redhat.com>
Mon, 10 Aug 2020 05:39:20 +0000 (15:39 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 11 Aug 2020 01:27:25 +0000 (11:27 +1000)
I fixed the init path, but missed the cleanup path.

Fixes: e0830704de7c ("drm/vmwgfx: takedown vram manager")
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200810054110.4192239-1-airlied@gmail.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

index a68ae0204bf52bdcc567406f417829a911f965e1..2c4858ea89b1c26d829cead74e01f855ff806433 100644 (file)
@@ -639,7 +639,7 @@ static void vmw_vram_manager_fini(struct vmw_private *dev_priv)
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
        vmw_thp_fini(dev_priv);
 #else
-       ttm_bo_man_fini(&dev_priv->bdev, TTM_PL_VRAM);
+       ttm_range_man_fini(&dev_priv->bdev, TTM_PL_VRAM);
 #endif
 }