drm/udl: Unmap buffer object after damage update
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 14 Nov 2019 14:10:21 +0000 (15:10 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 26 Nov 2019 11:34:25 +0000 (12:34 +0100)
commit6c44e30ae130b740441ac0c65d5fa12dd6586942
treef0c31ef7c1af2f3010e80d73c5bf41b5a5cde19b
parent4337ebbbbda3fb82e4fd928188a86e0bff0e9042
drm/udl: Unmap buffer object after damage update

Udl keeps a BO mapped for its entire lifetime if it has been used in a
damage update at least once. The BO's free callback release the mapping
before it frees the BO.

Change this behaviour to unmap immediately after the damage update, so
SHMEM's implementation of free can be used.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191114141025.32198-2-tzimmermann@suse.de
drivers/gpu/drm/udl/udl_fb.c