Commit 4d7553c3 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/ast: Unpin cursor BO during cleanup

The unpin operation was missing from ast_cursor_fini(). Fixed now.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190613073041.29350-3-tzimmermann@suse.de
parent a6c3464f
...@@ -959,6 +959,7 @@ static void ast_cursor_fini(struct drm_device *dev) ...@@ -959,6 +959,7 @@ static void ast_cursor_fini(struct drm_device *dev)
struct drm_gem_vram_object *gbo = struct drm_gem_vram_object *gbo =
drm_gem_vram_of_gem(ast->cursor_cache); drm_gem_vram_of_gem(ast->cursor_cache);
drm_gem_vram_kunmap_at(gbo, &ast->cache_kmap); drm_gem_vram_kunmap_at(gbo, &ast->cache_kmap);
drm_gem_vram_unpin(gbo);
drm_gem_object_put_unlocked(ast->cursor_cache); drm_gem_object_put_unlocked(ast->cursor_cache);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment