commit | 1b19aa5aa8c9394850a5e769abd4df12b3bdd1b7 | [log] [tgz] |
---|---|---|
author | Felix Kuehling <Felix.Kuehling@amd.com> | Wed Aug 22 15:28:44 2018 -0400 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue Oct 09 17:06:19 2018 -0500 |
tree | ccfa9840faeca5933b9294a73f64df70f7e719b8 | |
parent | 158b594a96529d895df943a4764609438a01d687 [diff] |
drm/amdkfd: Fix incorrect use of process->mm This mm_struct pointer should never be dereferenced. If running in a user thread, just use current->mm. If running in a kernel worker use get_task_mm to get a safe reference to the mm_struct. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>