Files
linux-nvgpu/drivers/gpu/nvgpu/os/linux
Sagar Kamble 32b5ab51a6 gpu: nvgpu: remove unbalanced dma_fence reference
job->post_fence dma_fence is created for a syncpoint by nvgpu during
submission. This fence is not freed after job completion as extra
dma_fence reference (dma_fence_get) is taken in
nvgpu_nvhost_fence_install.

sync_file_create called from this function already takes one ref
which will be dropped when the sync file is closed. dma_fence_get
called here from nvgpu_nvhost_fence_install is not paired with
corresponding put.

Remove this dma_fence_get call to fix the dma_fence memleak.

Bug 4788227

Change-Id: I003756dc9e023751b28161d322740309e08dedb5
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3199426
(cherry picked from commit a6818ea83516c8bd8961f03ad78421366d269572)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3211402
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2024-10-07 07:09:02 -07:00
..
2020-12-15 14:13:28 -06:00
2019-02-01 09:45:57 -08:00
2021-08-11 01:55:08 -07:00
2024-05-23 04:11:28 -07:00
2022-06-06 05:55:26 -07:00
2024-08-01 15:09:16 -07:00
2024-01-25 13:54:56 -08:00
2023-12-15 14:09:44 -08:00
2023-04-10 20:45:50 -07:00