commit | 20eca0123a35305e38b344d571cf32768854168c | [log] [tgz] |
---|---|---|
author | Qiushi Wu <wu000273@umn.edu> | Sat Jun 13 14:32:26 2020 -0500 |
committer | Alex Deucher <alexander.deucher@amd.com> | Wed Jul 01 01:59:21 2020 -0400 |
tree | 241cedaf49dc98edfa15263014b88ea2372fae09 | |
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 <wu000273@umn.edu> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>