Files
linux/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
Bernard Zhao c746945fb6 drm/amd/amdgpu: fix potential memleak
[ Upstream commit 27dfaedc0d ]

In function amdgpu_get_xgmi_hive, when kobject_init_and_add failed
There is a potential memleak if not call kobject_put.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-08 09:03:19 +01:00

23 KiB