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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:34:48 +0000 (16:34 +0100)
commit16bb81d541f31b163563fea951ccb30b0def0c0a
tree0786d74052e891c3b7ceca28942a38cb25498df7
parentcfcf92d8571d5f447b66d85c0bf5c9ed76f2b880
drm/amdgpu: grab the id mgr lock while accessing passid_mapping

[ Upstream commit 6817bf283b2b851095825ec7f0e9f10398e09125 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c