linux-xiaomi-chiron/drivers/gpu/drm/amd/amdkfd
Bernard Zhao b5b78a6c8d drm/amd: fix potential memleak in err branch
The function kobject_init_and_add alloc memory like:
kobject_init_and_add->kobject_add_varg->kobject_set_name_vargs
->kvasprintf_const->kstrdup_const->kstrdup->kmalloc_track_caller
->kmalloc_slab, in err branch this memory not free. If use
kmemleak, this path maybe catched.
These changes are to add kobject_put in kobject_init_and_add
failed branch, fix potential memleak.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
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>
Cc: stable@vger.kernel.org
2020-06-24 18:03:16 -04:00
..
cik_event_interrupt.c
cik_int.h
cik_regs.h
cwsr_trap_handler.h
cwsr_trap_handler_gfx8.asm
cwsr_trap_handler_gfx9.asm
cwsr_trap_handler_gfx10.asm
Kconfig
kfd_chardev.c drm/amdkfd: Track GPU memory utilization per process 2020-04-30 16:47:34 -04:00
kfd_crat.c
kfd_crat.h
kfd_dbgdev.c
kfd_dbgdev.h
kfd_dbgmgr.c
kfd_dbgmgr.h
kfd_debugfs.c
kfd_device.c drm/amdkfd: Enable GWS based on FW Support 2020-04-28 16:20:30 -04:00
kfd_device_queue_manager.c drm/amdkfd: Use a systematic method to calculate queue mask bit 2020-05-01 15:19:08 -04:00
kfd_device_queue_manager.h drm/amdkfd: Enable over-subscription with >1 GWS queue 2020-04-28 16:20:30 -04:00
kfd_device_queue_manager_cik.c
kfd_device_queue_manager_v9.c
kfd_device_queue_manager_v10.c
kfd_device_queue_manager_vi.c
kfd_doorbell.c
kfd_events.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
kfd_events.h
kfd_flat_memory.c
kfd_int_process_v9.c drm/amdkfd: Fix boolreturn.cocci warnings 2020-05-21 12:37:19 -04:00
kfd_interrupt.c
kfd_iommu.c drm/amdkfd: report the real PCI bus number 2020-05-21 12:48:42 -04:00
kfd_iommu.h
kfd_kernel_queue.c drm/amdkfd: Enable over-subscription with >1 GWS queue 2020-04-28 16:20:30 -04:00
kfd_kernel_queue.h
kfd_module.c
kfd_mqd_manager.c
kfd_mqd_manager.h
kfd_mqd_manager_cik.c
kfd_mqd_manager_v9.c
kfd_mqd_manager_v10.c
kfd_mqd_manager_vi.c
kfd_packet_manager.c drm/amdkfd: Enable over-subscription with >1 GWS queue 2020-04-28 16:20:30 -04:00
kfd_packet_manager_v9.c drm/amdkfd: Enable over-subscription with >1 GWS queue 2020-04-28 16:20:30 -04:00
kfd_packet_manager_vi.c
kfd_pasid.c
kfd_pm4_headers.h
kfd_pm4_headers_ai.h
kfd_pm4_headers_diq.h
kfd_pm4_headers_vi.h
kfd_pm4_opcodes.h
kfd_priv.h Merge tag 'amd-drm-fixes-5.8-2020-06-17' of git://people.freedesktop.org/~agd5f/linux into drm-fixes 2020-06-19 10:02:30 +10:00
kfd_process.c drm/amd: fix potential memleak in err branch 2020-06-24 18:03:16 -04:00
kfd_process_queue_manager.c drm/amdkfd: New IOCTL to allocate queue GWS (v2) 2020-04-28 16:20:30 -04:00
kfd_queue.c
kfd_topology.c drm/amdkfd: Report domain with topology 2020-05-01 09:59:51 -04:00
kfd_topology.h drm/amdkfd: Report domain with topology 2020-05-01 09:59:51 -04:00
Makefile
soc15_int.h