linux/drivers/gpu/drm/amd/amdkfd
Pan Bian 8bf793883d drm/amdkfd: fix improper return value on error
In function kfd_wait_on_events(), when the call to copy_from_user()
fails, the value of return variable ret is 0. 0 indicates success, which
is inconsistent with the execution status. This patch fixes the bug by
assigning "-EFAULT" to ret when copy_from_user() returns an unexpected
value.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2017-01-16 17:34:47 +02:00
..
cik_event_interrupt.c
cik_int.h
cik_regs.h
Kconfig
kfd_chardev.c
kfd_crat.h
kfd_dbgdev.c
kfd_dbgdev.h
kfd_dbgmgr.c
kfd_dbgmgr.h
kfd_device.c
kfd_device_queue_manager.c
kfd_device_queue_manager.h
kfd_device_queue_manager_cik.c
kfd_device_queue_manager_vi.c
kfd_doorbell.c
kfd_events.c
kfd_events.h
kfd_flat_memory.c
kfd_interrupt.c
kfd_kernel_queue.c
kfd_kernel_queue.h
kfd_kernel_queue_cik.c
kfd_kernel_queue_vi.c
kfd_module.c
kfd_mqd_manager.c
kfd_mqd_manager.h
kfd_mqd_manager_cik.c
kfd_mqd_manager_vi.c
kfd_packet_manager.c
kfd_pasid.c
kfd_pm4_headers.h
kfd_pm4_headers_diq.h
kfd_pm4_headers_vi.h
kfd_pm4_opcodes.h
kfd_priv.h
kfd_process.c
kfd_process_queue_manager.c
kfd_queue.c
kfd_topology.c
kfd_topology.h
Makefile