mirror_ubuntu-kernels/drivers/gpu/drm/amd/amdkfd
Tom Rix 574ff46f10 drm/amdkfd: fix freeing an unset pointer
clang static analysis reports this problem
kfd_chardev.c:2092:2: warning: 1st function call argument
  is an uninitialized value
        kvfree(bo_privs);
        ^~~~~~~~~~~~~~~~

When bo_buckets alloc fails, it jumps to an error handler
that frees the yet to be allocated bo_privs.  Because
bo_buckets is the first error, return directly.

Fixes: 5ccbb057c0 ("drm/amdkfd: CRIU Implement KFD checkpoint ioctl")
Signed-off-by: Tom Rix <trix@redhat.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>
2022-02-11 16:10:40 -05:00
..
cik_event_interrupt.c drm/amdkfd: rename kfd_process_vm_fault to kfd_dqm_evict_pasid 2022-02-09 14:14:53 -05:00
cik_int.h
cik_regs.h
cwsr_trap_handler_gfx8.asm drm/amdkfd: Add aldebaran trap handler support 2021-03-10 00:02:24 -05:00
cwsr_trap_handler_gfx9.asm drm/amdkfd: Fix saving the ACC vgprs for Aldebaran 2021-03-23 22:56:55 -04:00
cwsr_trap_handler_gfx10.asm drm/amdkfd: Fix spurious debug exception on gfx10 2020-08-10 17:26:51 -04:00
cwsr_trap_handler.h drm/amdkfd: Fix saving the ACC vgprs for Aldebaran 2021-03-23 22:56:55 -04:00
Kconfig drm/amdkfd: Add CONFIG_HSA_AMD_SVM 2021-04-20 21:50:35 -04:00
kfd_chardev.c drm/amdkfd: fix freeing an unset pointer 2022-02-11 16:10:40 -05:00
kfd_crat.c drm/amdkfd: Check for null pointer after calling kmemdup 2022-01-11 15:44:27 -05:00
kfd_crat.h
kfd_debugfs.c drm/amdkfd: Fix cat debugfs hang_hws file causes system crash bug 2021-04-09 16:42:11 -04:00
kfd_device_queue_manager_cik.c
kfd_device_queue_manager_v9.c drm/amdkfd: convert misc checks to IP version checking 2021-11-17 17:09:46 -05:00
kfd_device_queue_manager_v10.c drm/amdkfd: Use same SQ prefetch setting as amdgpu 2020-10-21 23:06:07 -04:00
kfd_device_queue_manager_vi.c
kfd_device_queue_manager.c drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
kfd_device_queue_manager.h drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
kfd_device.c drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
kfd_doorbell.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_events.c drm/amdkfd: CRIU implement gpu_id remapping 2022-02-07 17:59:52 -05:00
kfd_events.h drm, iommu: Change type of pasid to u32 2020-09-17 19:21:16 +02:00
kfd_flat_memory.c drm/amdkfd: replace asic_family with asic_type 2021-11-17 17:10:01 -05:00
kfd_int_process_v9.c drm/amdkfd: use unmap all queues for poison consumption 2022-02-09 14:15:07 -05:00
kfd_interrupt.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_iommu.c drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
kfd_iommu.h drm/amdkfd: fix build error with AMD_IOMMU_V2=m 2021-03-23 23:28:11 -04:00
kfd_kernel_queue.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_kernel_queue.h
kfd_migrate.c drm/amdgpu: remove gart.ready flag 2022-01-19 22:32:47 -05:00
kfd_migrate.h drm/amdkfd: fix svm_migrate_fini warning 2021-09-23 16:34:57 -04:00
kfd_module.c drm/amdgpu: Fix handling of KFD initialization failures 2020-09-22 12:24:11 -04:00
kfd_mqd_manager_cik.c drm/amdkfd: Consolidate MQD manager functions 2022-02-09 16:57:51 -05:00
kfd_mqd_manager_v9.c drm/amdkfd: Consolidate MQD manager functions 2022-02-09 16:57:51 -05:00
kfd_mqd_manager_v10.c drm/amdkfd: Consolidate MQD manager functions 2022-02-09 16:57:51 -05:00
kfd_mqd_manager_vi.c drm/amdkfd: Consolidate MQD manager functions 2022-02-09 16:57:51 -05:00
kfd_mqd_manager.c drm/amdkfd: Consolidate MQD manager functions 2022-02-09 16:57:51 -05:00
kfd_mqd_manager.h drm/amdkfd: Consolidate MQD manager functions 2022-02-09 16:57:51 -05:00
kfd_packet_manager_v9.c drm/amdkfd: add per-vmid-debug map_process_support 2021-04-23 17:16:05 -04:00
kfd_packet_manager_vi.c drm/amdkfd: fix function scopes 2021-12-13 16:32:34 -05:00
kfd_packet_manager.c drm/amdkfd: replace asic_family with asic_type 2021-11-17 17:10:01 -05:00
kfd_pasid.c drm, iommu: Change type of pasid to u32 2020-09-17 19:21:16 +02:00
kfd_pm4_headers_ai.h
kfd_pm4_headers_aldebaran.h drm/amdkfd: add per-vmid-debug map_process_support 2021-04-23 17:16:05 -04:00
kfd_pm4_headers_diq.h
kfd_pm4_headers_vi.h
kfd_pm4_headers.h
kfd_pm4_opcodes.h
kfd_priv.h drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
kfd_process_queue_manager.c drm/amdkfd: CRIU implement gpu_id remapping 2022-02-07 17:59:52 -05:00
kfd_process.c drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
kfd_queue.c
kfd_smi_events.c drm/amd/pm: do not expose implementation details to other blocks out of power 2022-01-14 17:51:14 -05:00
kfd_smi_events.h drm/amdkfd: Update SMI throttle event bitmask 2021-07-23 10:08:00 -04:00
kfd_svm.c drm/amdkfd: CRIU return -EFAULT for copy_to_user() failure 2022-02-11 16:10:06 -05:00
kfd_svm.h drm/amdkfd: CRIU resume shared virtual memory ranges 2022-02-07 17:59:53 -05:00
kfd_topology.c drm/amdkfd: add kfd_device_info_init function 2021-12-01 16:15:37 -05:00
kfd_topology.h drm/amdkfd: Add sysfs bitfields and enums to uAPI 2021-11-17 16:58:03 -05:00
Makefile drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
soc15_int.h drm/amdkfd: add sdma poison consumption handling 2021-06-07 14:57:24 -04:00