drm/amdkfd: Get reference to lead_thread task struct
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 27 Nov 2017 23:29:50 +0000 (18:29 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 27 Nov 2017 23:29:50 +0000 (18:29 -0500)
commitc7b1243eef128c49aabdfab71cd4f5ecb6602d97
tree3f87a9bd0228506b0366328aad0c68297e39fb6b
parent851a645efd0fee7f27819ab30f3b353bace3cd98
drm/amdkfd: Get reference to lead_thread task struct

Increment the kfd_process.lead_thread's reference counter to make
it safe to dereference. This is needed for getting a safe reference
to the process' mm_struct.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c