diff options
| author | Philip Yang <[email protected]> | 2021-06-21 22:51:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-06-30 04:18:23 +0000 |
| commit | dcdb4d904b4bd3078fe8d4d24b1658560d6078ef (patch) | |
| tree | 38ef0795334338ed1e836582a83beda65e77924b /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
| parent | drm/amdkfd: add helper function for kfd sysfs create (diff) | |
| download | kernel-dcdb4d904b4bd3078fe8d4d24b1658560d6078ef.tar.gz kernel-dcdb4d904b4bd3078fe8d4d24b1658560d6078ef.zip | |
drm/amdkfd: fix sysfs kobj leak
3 cases of kobj leak, which causes memory leak:
kobj_type must have release() method to free memory from release
callback. Don't need NULL default_attrs to init kobj.
sysfs files created under kobj_status should be removed with kobj_status
as parent kobject.
Remove queue sysfs files when releasing queue from process MMU notifier
release callback.
Signed-off-by: Philip Yang <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
