mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
drm/qxl: release shadow on shutdown
[ Upstream commit 4ca77c513537700d3fae69030879f781dde1904c ] In case we have a shadow surface on shutdown release it so it doesn't leak. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Link: http://patchwork.freedesktop.org/patch/msgid/20210204145712.1531203-6-kraxel@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a7d964da5d
commit
bbf11337de
1 changed files with 4 additions and 0 deletions
|
|
@ -1237,6 +1237,10 @@ int qxl_modeset_init(struct qxl_device *qdev)
|
|||
|
||||
void qxl_modeset_fini(struct qxl_device *qdev)
|
||||
{
|
||||
if (qdev->dumb_shadow_bo) {
|
||||
drm_gem_object_put(&qdev->dumb_shadow_bo->tbo.base);
|
||||
qdev->dumb_shadow_bo = NULL;
|
||||
}
|
||||
qxl_destroy_monitors_object(qdev);
|
||||
drm_mode_config_cleanup(&qdev->ddev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue