drm/amdgpu: fix amdgpu_vm_pasid_fault_credit
authorChristian König <[email protected]>
Tue, 9 Jan 2018 18:18:59 +0000 (19:18 +0100)
committerAlex Deucher <[email protected]>
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 <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c