]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/virtio: fix virtio_gpu_cursor_plane_update().
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Feb 2020 13:50:47 +0000 (14:50 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Feb 2020 10:11:59 +0000 (11:11 +0100)
Add missing virtio_gpu_array_lock_resv() call.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200211135047.22261-3-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_plane.c

index ac42c84d2d7f20fc721f912c7e18045832795772..d1c3f5fbfee4a65e6f33aa7f1f8ac8ef5ee0ed59 100644 (file)
@@ -260,6 +260,7 @@ static void virtio_gpu_cursor_plane_update(struct drm_plane *plane,
                if (!objs)
                        return;
                virtio_gpu_array_add_obj(objs, vgfb->base.obj[0]);
+               virtio_gpu_array_lock_resv(objs);
                virtio_gpu_cmd_transfer_to_host_2d
                        (vgdev, 0,
                         plane->state->crtc_w,