mirror of https://gitee.com/openkylin/linux.git
drm/vmwgfx/ttm: fix the non-THP cleanup path.
I fixed the init path, but missed the cleanup path.
Fixes: e0830704de
("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
This commit is contained in:
parent
b26975593b
commit
a343160235
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue