diff options
| author | Qiushi Wu <wu000273@umn.edu> | 2020-06-13 14:32:26 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-03 11:19:23 +0200 |
| commit | c9cfd9445098b88776729168d9ec5244442052df (patch) | |
| tree | 0a58d963f6f167ec43958ced1e826a85b5db62ca /tools/perf/scripts/python | |
| parent | c533db361549bdabb30fa88f2b712c2766580e6a (diff) | |
drm/amdkfd: Fix reference count leaks.
[ Upstream commit 20eca0123a35305e38b344d571cf32768854168c ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
