OSDN Git Service

drm/amdgpu: fix amdgpu_vm_pasid_fault_credit
authorChristian König <christian.koenig@amd.com>
Tue, 9 Jan 2018 18:18:59 +0000 (19:18 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jan 2018 20:35:26 +0000 (15:35 -0500)
commitd958939afc39391c0d007a0ca43153856d63ec2a
tree05475346d99b445fe132a8c57e947be99621128d
parente2721595e4c3d8b63dcd85bc99ad1ea4821a8d88
drm/amdgpu: fix amdgpu_vm_pasid_fault_credit

As soon as the lock is dropped the VM pointer can be invalid.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c