]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/amdkfd: Fix a resource leak in svm_range_validate_and_map()
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>
Tue, 30 Apr 2024 20:24:46 +0000 (15:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:13 +0000 (15:34 +0200)
commit4c59fc86bf28c3217a4cec7736da824d527ffb53
tree2fbdb20803320d7d1ca84c2cace4f49d52a994c7
parent05c1df9e893dd71cf29a60e810fc07f56f193086
drm/amd/amdkfd: Fix a resource leak in svm_range_validate_and_map()

[ Upstream commit d2d3a44008fea01ec7d5a9d9ca527286be2e0257 ]

Analysis of code by Coverity, a static code analyser, has identified
a resource leak in the symbol hmm_range. This leak occurs when one of
the prior steps before it is released encounters an error.

Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c