mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
32b5ab51a62e82229ef5c15fc8b115fff0586ff8
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>
Description
No description provided