linux-uconsole/drivers/gpu/drm/amd/amdkfd
Allen Pais 5524867433 drm/amdkfd: fix a potential NULL pointer dereference (v2)
[ Upstream commit 81de29d842 ]

alloc_workqueue is not checked for errors and as a result,
a potential NULL dereference could occur.

v2 (Felix Kuehling):
* Fix compile error (kfifo_free instead of fifo_free)
* Return proper error code

Signed-off-by: Allen Pais <allen.pais@oracle.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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:34:53 +01:00
..
cik_event_interrupt.c drm/amdkfd: fix zero reading of VMID and PASID for Hawaii 2018-07-11 22:32:51 -04:00
cik_int.h drm/amdkfd: Clean up reference of radeon 2018-07-11 22:33:08 -04:00
cik_regs.h
cwsr_trap_handler.h drm/amdkfd: Fix race between scheduler and context restore 2018-07-11 22:32:46 -04:00
cwsr_trap_handler_gfx8.asm drm/amdkfd: Fix race between scheduler and context restore 2018-07-11 22:32:46 -04:00
cwsr_trap_handler_gfx9.asm drm/amdkfd: Fix race between scheduler and context restore 2018-07-11 22:32:46 -04:00
Kconfig
kfd_chardev.c drm/amdkfd: Add CU-masking ioctl to KFD 2018-07-14 19:05:59 -04:00
kfd_crat.c drm/amdkfd: Consolidate duplicate memory banks info in topology 2018-07-13 16:17:43 -04:00
kfd_crat.h
kfd_dbgdev.c drm/amdkfd: Clean up reference of radeon 2018-07-11 22:33:08 -04:00
kfd_dbgdev.h drm/amdkfd: Clean up reference of radeon 2018-07-11 22:33:08 -04:00
kfd_dbgmgr.c
kfd_dbgmgr.h
kfd_debugfs.c drm/amdkfd: Add debugfs interface to trigger HWS hang 2018-07-11 22:33:04 -04:00
kfd_device.c drm/amdkfd: Add missing Polaris10 ID 2019-09-16 08:22:14 +02:00
kfd_device_queue_manager.c drm/amdkfd: Fix sdma queue map issue 2019-07-31 07:26:58 +02:00
kfd_device_queue_manager.h drm/amdkfd: Make SDMA engine number an ASIC-dependent variable 2018-07-13 16:17:44 -04:00
kfd_device_queue_manager_cik.c
kfd_device_queue_manager_v9.c drm/amdkfd: Use module parameters noretry as the internal variable name 2018-07-11 22:33:06 -04:00
kfd_device_queue_manager_vi.c
kfd_doorbell.c drm/amdkfd: Fix kernel queue 64 bit doorbell offset calculation 2018-07-11 22:33:01 -04:00
kfd_events.c drm/amdkfd: Optimize out some duplicated code in kfd_signal_iommu_event() 2018-07-13 16:17:47 -04:00
kfd_events.h drm/amdkfd: Implement GPU reset handlers in KFD 2018-07-11 22:32:56 -04:00
kfd_flat_memory.c
kfd_int_process_v9.c drm/amdkfd: fix zero reading of VMID and PASID for Hawaii 2018-07-11 22:32:51 -04:00
kfd_interrupt.c drm/amdkfd: fix a potential NULL pointer dereference (v2) 2019-12-31 16:34:53 +01:00
kfd_iommu.c drm/amdkfd: Fix ATS capablity was not reported correctly on some APUs 2018-09-20 10:25:23 -05:00
kfd_iommu.h
kfd_kernel_queue.c drm/amdkfd: Add CU-masking ioctl to KFD 2018-07-14 19:05:59 -04:00
kfd_kernel_queue.h drm/amdkfd: Replace mqd with mqd_mgr as the variable name for mqd_manager 2018-07-11 22:33:07 -04:00
kfd_kernel_queue_cik.c
kfd_kernel_queue_v9.c
kfd_kernel_queue_vi.c
kfd_module.c drm/amdkfd: Use module parameters noretry as the internal variable name 2018-07-11 22:33:06 -04:00
kfd_mqd_manager.c drm/amdkfd: Add CU-masking ioctl to KFD 2018-07-14 19:05:59 -04:00
kfd_mqd_manager.h drm/amdkfd: Add CU-masking ioctl to KFD 2018-07-14 19:05:59 -04:00
kfd_mqd_manager_cik.c drm/amdkfd: use init_mqd function to allocate object for hid_mqd (CI) 2019-04-20 09:16:04 +02:00
kfd_mqd_manager_v9.c drm/amdkfd: Fix a potential memory leak 2019-07-31 07:26:58 +02:00
kfd_mqd_manager_vi.c drm/amdkfd: Add CU-masking ioctl to KFD 2018-07-14 19:05:59 -04:00
kfd_packet_manager.c drm/amdkfd: Add debugfs interface to trigger HWS hang 2018-07-11 22:33:04 -04:00
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 drm/amdkfd: Fix ATS capablity was not reported correctly on some APUs 2018-09-20 10:25:23 -05:00
kfd_process.c drm/amdkfd: Fix error codes in kfd_get_process 2018-07-11 22:32:47 -04:00
kfd_process_queue_manager.c drm/amdkfd: Add CU-masking ioctl to KFD 2018-07-14 19:05:59 -04:00
kfd_queue.c
kfd_topology.c drm/amdkfd: Don't assign dGPUs to APU topology devices 2019-02-27 10:08:55 +01:00
kfd_topology.h
Makefile
soc15_int.h