Skip to content

Commit 8b6ec99

Browse files
Qi Liukraxel
authored andcommitted
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: 2cd7b6f ("drm/virtio: add in/out fence support for explicit synchronization") Co-developed-by: Xin He <[email protected]> Signed-off-by: Xin He <[email protected]> Signed-off-by: Qi Liu <[email protected]> Reviewed-by: Muchun Song <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent b5ac98c commit 8b6ec99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/virtio/virtgpu_ioctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ static int virtio_gpu_execbuffer_ioctl(struct drm_device *dev, void *data,
179179

180180
virtio_gpu_cmd_submit(vgdev, buf, exbuf->size,
181181
vfpriv->ctx_id, buflist, out_fence);
182+
dma_fence_put(&out_fence->f);
182183
virtio_gpu_notify(vgdev);
183184
return 0;
184185

0 commit comments

Comments
 (0)