drm/radeon: fix lockup when BOs aren't part of the VM on release
authorChristian König <christian.koenig@amd.com>
Mon, 27 Apr 2015 15:04:34 +0000 (17:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Apr 2015 15:27:59 +0000 (11:27 -0400)
commit26d4d129b6042197b4cbc8341c0618f99231af2f
treeb9242dfb94f34298e3a68b7ec7c07322ebf575dd
parentcd17e02ff4db58ec32d35cf331c705d295779930
drm/radeon: fix lockup when BOs aren't part of the VM on release

If we unmap BOs before releasing them them the intervall tree locks
up because we try to remove an entry not inside the tree.

Based on a patch from Michel Dänzer.

Signed-off-by: Christian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_vm.c