From 90f9b1cacf8b611bf14ab25c81ae9ee530a23d3c Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 14 Apr 2022 08:33:54 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.20.1