drm/amdgpu: grab the id mgr lock while accessing passid_mapping
authorChristian König <christian.koenig@amd.com>
Mon, 9 Sep 2019 11:57:32 +0000 (13:57 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 15:16:28 +0000 (10:16 -0500)
commit6817bf283b2b851095825ec7f0e9f10398e09125
tree22fe43d097fe2503b347cf6a7e36db2ab73772a7
parent1b657824681596946bf30a10463cdc70e969786f
drm/amdgpu: grab the id mgr lock while accessing passid_mapping

Need to make sure that we actually dropping the right fence.
Could be done with RCU as well, but to complicated for a fix.

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