[Spice-devel] [PATCH v3 2/4] drm/qxl: unpin release objects
Gerd Hoffmann
kraxel at redhat.com
Wed Jan 20 11:12:38 UTC 2021
Balances the qxl_create_bo(..., pinned=true, ...);
call in qxl_release_bo_alloc().
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
drivers/gpu/drm/qxl/qxl_release.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qxl_release.c
index 0fcfc952d5e9..add979cba11b 100644
--- a/drivers/gpu/drm/qxl/qxl_release.c
+++ b/drivers/gpu/drm/qxl/qxl_release.c
@@ -166,6 +166,7 @@ qxl_release_free_list(struct qxl_release *release)
entry = container_of(release->bos.next,
struct qxl_bo_list, tv.head);
bo = to_qxl_bo(entry->tv.bo);
+ bo->tbo.pin_count = 0; /* ttm_bo_unpin(&bo->tbo); */
qxl_bo_unref(&bo);
list_del(&entry->tv.head);
kfree(entry);
--
2.29.2
More information about the Spice-devel
mailing list