diff options
author | Philip Yang <Philip.Yang@amd.com> | 2022-05-26 16:15:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-06-01 16:04:41 -0400 |
commit | fa582c6f3684ac0098a9d02ddf0ed52a02b37127 (patch) | |
tree | f4c75c6396090581ab03b2af4df26baf920f0f36 /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | |
parent | 2a460963350ec6b1534d28d7f943b5f84815aff2 (diff) |
drm/amdkfd: Use mmget_not_zero in MMU notifier
MMU notifier callback may pass in mm with mm->mm_users==0 when process
is exiting, use mmget_no_zero to avoid accessing invalid mm in deferred
list work after mm is gone.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h')
0 files changed, 0 insertions, 0 deletions