drm/radeon/kms/vm: fix possible bug in radeon_vm_bo_rmv()
authorSebastian Biemueller <sebastian.biemueller@amd.com>
Wed, 29 Feb 2012 16:04:52 +0000 (11:04 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 29 Feb 2012 17:47:57 +0000 (17:47 +0000)
commit108b0d348302be2b2f846bc8a8115f5b099a6196
tree206d8613c6eb6740fe13f0d80eb090c8b57473de
parent1404547f3a32ffc154dbf6aa30f966f0d2abafb7
drm/radeon/kms/vm: fix possible bug in radeon_vm_bo_rmv()

The bo is removed from the list at the top of
radeon_vm_bo_rmv(), but then the list is used
in radeon_vm_bo_update_pte() to look up the vm.
remove the bo_list entry at the end of the
function instead.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <j.glisse@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_gart.c