drm/virtio: fix missing dma_fence_put() in virtio_gpu_execbuffer_ioctl()
authorQi Liu <liuqi.16@bytedance.com>
Tue, 21 Jul 2020 10:16:47 +0000 (18:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:49:08 +0000 (11:49 +0200)
commit480a5124cd0e0c7aa794056401f66ce1dbb4269b
treea193432562dc24b71639fbd880098eb825e6a2a0
parent88e79f7a9841278fa8ff7ff6178bad12da002ffc
drm/virtio: fix missing dma_fence_put() in virtio_gpu_execbuffer_ioctl()

[ Upstream commit 8b6ec999b198b59ae61e86e70f5e9df73fe4754f ]

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

Fixes: 2cd7b6f08bc4 ("drm/virtio: add in/out fence support for explicit synchronization")
Co-developed-by: Xin He <hexin.op@bytedance.com>
Signed-off-by: Xin He <hexin.op@bytedance.com>
Signed-off-by: Qi Liu <liuqi.16@bytedance.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200721101647.42653-1-hexin.op@bytedance.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/virtio/virtgpu_ioctl.c