drm/amdkfd: Use mmu_notifier_get
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 12 Feb 2021 06:36:47 +0000 (01:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Feb 2021 23:03:07 +0000 (18:03 -0500)
commit3248b6d3cbcd7f7f9e7cd03feb90cee1b563172a
tree3f58b3532f8157f0bf90759b70c4fc238d781270
parent263a4febd1cce668b63dfd523220686085b4f587
drm/amdkfd: Use mmu_notifier_get

We use mmu_notifier_put to free the MMU notifier. That needs to be
paired with mmu_notifier_get to work correctly. Othewrise the next patch
would cause a kernel oops.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c