diff options
author | 2021-11-14 18:58:50 -0800 | |
---|---|---|
committer | 2021-11-22 14:45:03 -0500 | |
commit | 7b833d680481f463276aedf500696ea25698deaa (patch) | |
tree | bbe0a595e2ac4eb57fa8d0e34507f3f1d2d2dd46 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
parent | drm/amd/amdgpu: cleanup the code style a bit (diff) | |
download | wireguard-linux-7b833d680481f463276aedf500696ea25698deaa.tar.xz wireguard-linux-7b833d680481f463276aedf500696ea25698deaa.zip |
drm/amd/amdgpu: fix potential memleak
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
0 files changed, 0 insertions, 0 deletions