summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-09 13:45:41 +0100
committerDave Airlie <airlied@redhat.com>2012-01-09 13:49:48 +0100
commita7eef882a8d37be46459faa5020648af7ccf6ad2 (patch)
tree572a177cb3000fd09335c5accb48970496f51bbc /drivers/gpu
parentdrm/radeon: use after free in radeon_vm_bo_add() (diff)
downloadlinux-a7eef882a8d37be46459faa5020648af7ccf6ad2.tar.xz
linux-a7eef882a8d37be46459faa5020648af7ccf6ad2.zip
drm/radeon: double lock typo in radeon_vm_bo_rmv()
The second lock should be an unlock or it causes a deadlock. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_gart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c
index a97baf5c114f..010dad8b66ae 100644
--- a/drivers/gpu/drm/radeon/radeon_gart.c
+++ b/drivers/gpu/drm/radeon/radeon_gart.c
@@ -603,7 +603,7 @@ int radeon_vm_bo_rmv(struct radeon_device *rdev,
radeon_vm_bo_update_pte(rdev, vm, bo, NULL);
radeon_mutex_unlock(&rdev->cs_mutex);
list_del(&bo_va->vm_list);
- mutex_lock(&vm->mutex);
+ mutex_unlock(&vm->mutex);
kfree(bo_va);
return 0;