commit | 11b29c9e25788d0afb2ddb67bcd89424bd25f2f7 | [log] [tgz] |
---|---|---|
author | Felix Kuehling <Felix.Kuehling@amd.com> | Tue Oct 02 18:41:12 2018 -0400 |
committer | Alex Deucher <alexander.deucher@amd.com> | Thu Oct 04 11:37:25 2018 -0400 |
tree | 12b50c02a89f402ac4f77a9fbd20c32056a56d0c | |
parent | 987bf116445db5d63a5c2ed94c4479687d9c9973 [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. Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>