diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-02-11 14:50:47 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-02-13 11:11:59 +0100 |
commit | 5cfd31c5b3a321aed0c9621b7b45efa2942056f8 (patch) | |
tree | acbc7e1de789b6158e671e3561bb274286ff1f11 /drivers | |
parent | drm/virtio: fix virtio_gpu_execbuffer_ioctl locking (diff) | |
download | linux-5cfd31c5b3a321aed0c9621b7b45efa2942056f8.tar.xz linux-5cfd31c5b3a321aed0c9621b7b45efa2942056f8.zip |
drm/virtio: fix virtio_gpu_cursor_plane_update().
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_plane.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c index ac42c84d2d7f..d1c3f5fbfee4 100644 --- a/drivers/gpu/drm/virtio/virtgpu_plane.c +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c @@ -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, |