]> git.baikalelectronics.ru Git - kernel.git/commit
drm/qxl: balance dumb_shadow_bo pin
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 11 May 2021 10:45:22 +0000 (12:45 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 May 2021 10:37:47 +0000 (12:37 +0200)
commit6fd46c41a4a990c16d9451c1bc07bede6b0fa2fc
treee76de436123fc3f4382990d42287cb365b7d9fda
parent36d3a4181eb650c200c418fbd944a6b4743e3ce8
drm/qxl: balance dumb_shadow_bo pin

The shadow bo is created in pinned state, so we have to unpin it when
dropping the reference.  Otherwise ttm is unhappy and throws a WARN()
on release.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20210511104522.2694803-3-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_display.c