diff options
author | Qiushi Wu <[email protected]> | 2020-06-13 14:32:26 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-07-01 01:59:21 -0400 |
commit | 20eca0123a35305e38b344d571cf32768854168c (patch) | |
tree | 241cedaf49dc98edfa15263014b88ea2372fae09 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | b205795677c034a1975e75a466ad158950fde4b4 (diff) |
drm/amdkfd: Fix reference count leaks.
kobject_init_and_add() takes reference even when it fails.
If this function returns an error, kobject_put() must be called to
properly clean up the memory associated with the object.
Signed-off-by: Qiushi Wu <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions