]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Release hive reference properly
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 2 Sep 2025 06:07:37 +0000 (11:37 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:52:31 +0000 (16:52 -0400)
commitc1456fadce0c99175f97e66c2b982dd051e01aa2
tree5b0f8772d7021c6e13fa2a4802de634eeaa2d1fa
parent2a7a794eb82c37014ea95f7f58ebeff73ef72858
drm/amdgpu: Release hive reference properly

xgmi hive reference is taken on function entry, but not released
correctly for all paths. Use __free() to release reference properly.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Ce Sun <cesun102@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h