Commit 8b6ec999 authored by Qi Liu's avatar Qi Liu Committed by Gerd Hoffmann

drm/virtio: fix missing dma_fence_put() in virtio_gpu_execbuffer_ioctl()

We should put the reference count of the fence after calling
virtio_gpu_cmd_submit(). So add the missing dma_fence_put().

Fixes: 2cd7b6f0 ("drm/virtio: add in/out fence support for explicit synchronization")
Co-developed-by: default avatarXin He <hexin.op@bytedance.com>
Signed-off-by: default avatarXin He <hexin.op@bytedance.com>
Signed-off-by: default avatarQi Liu <liuqi.16@bytedance.com>
Reviewed-by: default avatarMuchun Song <songmuchun@bytedance.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200721101647.42653-1-hexin.op@bytedance.comSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent b5ac98cb
......@@ -179,6 +179,7 @@ static int virtio_gpu_execbuffer_ioctl(struct drm_device *dev, void *data,
virtio_gpu_cmd_submit(vgdev, buf, exbuf->size,
vfpriv->ctx_id, buflist, out_fence);
dma_fence_put(&out_fence->f);
virtio_gpu_notify(vgdev);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment