From: jsg Date: Thu, 14 Apr 2022 08:33:54 +0000 (+0000) Subject: drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=90f9b1cacf8b611bf14ab25c81ae9ee530a23d3c;p=openbsd drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj From Xin Xiong 3edd8646cb7c11b57c90e026bda6f21076223f5b in linux 5.15.y/5.15.34 dfced44f122c500004a48ecc8db516bb6a295a1b in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c index 5d8e149800e..9a8b2548a9f 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c @@ -1510,6 +1510,7 @@ int amdgpu_cs_fence_to_handle_ioctl(struct drm_device *dev, void *data, return 0; default: + dma_fence_put(fence); return -EINVAL; } }