drm/udl: Begin/end access to imported buffers in damage-handler
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Dec 2019 08:59:53 +0000 (09:59 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Dec 2019 12:52:18 +0000 (13:52 +0100)
commit798ce3fe1c3a9819f46a5fb930b24a19ccf59c89
tree0b28998ac07a86b69e6c75e6f288e6ee0aad6144
parentcd45e30a7099e5fcbc25fcfa035fa604255afdee
drm/udl: Begin/end access to imported buffers in damage-handler

The damage-handler code now invokes dma_buf_{begin,end}_access()
for imported buffers. These calls were missing from the page-flip
and modesetting code paths. The patch also fixes an bug in the
original where an error code was overwritten by the result of
dma_buf_end_cpu_access().

v2:
* only return an error code from dma_buf_end_cpu_access() if
  no other error code has been set before

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191206085954.9697-7-tzimmermann@suse.de
drivers/gpu/drm/udl/udl_fb.c