commit | b8ea3783467586246d0b2b08f2e3f42853219d94 | [log] [tgz] |
---|---|---|
author | Felix Kuehling <Felix.Kuehling@amd.com> | Tue Feb 16 15:29:23 2016 -0500 |
committer | Alex Deucher <alexander.deucher@amd.com> | Wed Feb 17 16:10:42 2016 -0500 |
tree | 4eb5c6f1a9bc517209f2e8bd3429df6f5503a922 | |
parent | 418aa0c296ddb5df90c4e94f995cfd3f3c9e96dc [diff] |
drm/amdgpu: Fix race condition in amdgpu_mn_unregister Exchange locking order of adev->mn_lock and mm_sem, so that rmn->mm->mmap_sem can be taken safely, protected by adev->mn_lock, when amdgpu_mn_destroy runs concurrently. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>