OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8752f1
)
drm/qxl: unpin release objects
author
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 4 Feb 2021 14:57:05 +0000
(15:57 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 5 Feb 2021 07:52:25 +0000
(08:52 +0100)
Balances the qxl_create_bo(..., pinned=true, ...);
call in qxl_release_bo_alloc().
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link:
http://patchwork.freedesktop.org/patch/msgid/20210204145712.1531203-5-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_release.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_release.c
b/drivers/gpu/drm/qxl/qxl_release.c
index
c524127
..
28013fd
100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_release.c
+++ b/
drivers/gpu/drm/qxl/qxl_release.c
@@
-347,6
+347,7
@@
int qxl_alloc_release_reserved(struct qxl_device *qdev, unsigned long size,
mutex_lock(&qdev->release_mutex);
if (qdev->current_release_bo_offset[cur_idx] + 1 >= releases_per_bo[cur_idx]) {
+ qxl_bo_unpin(qdev->current_release_bo[cur_idx]);
qxl_bo_unref(&qdev->current_release_bo[cur_idx]);
qdev->current_release_bo_offset[cur_idx] = 0;
qdev->current_release_bo[cur_idx] = NULL;