drm/amdgpu: Fix leak when GPU memory allocation fails
authorMukul Joshi <mukul.joshi@amd.com>
Thu, 18 Apr 2024 15:32:34 +0000 (11:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Apr 2024 03:54:49 +0000 (23:54 -0400)
commite53a1713de314204f66cc186a74115ea62407876
tree86b638994c6b603071ca3b95031d06dc304a68fb
parent7e38ccb5276fe28f60088181ff4d279a8277b708
drm/amdgpu: Fix leak when GPU memory allocation fails

Free the sync object if the memory allocation fails for any
reason.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c