linux/drivers/gpu
Philip Yang 18127c30f6 drm/amdkfd: fix sysfs kobj leak
[ Upstream commit dcdb4d904b ]

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 <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-07-20 16:00:26 +02:00
..
drm drm/amdkfd: fix sysfs kobj leak 2021-07-20 16:00:26 +02:00
host1x gpu: host1x: Split up client initalization and registration 2021-05-17 12:31:05 +02:00
ipu-v3 drm/imx: Add 8 pixel alignment fix 2021-07-19 10:04:30 +02:00
trace gpu/trace: add a gpu total memory usage tracepoint 2020-03-03 17:52:41 -05:00
vga pci-v5.11-changes 2020-12-15 16:49:59 -08:00
Makefile gpu/trace: add a gpu total memory usage tracepoint 2020-03-03 17:52:41 -05:00